Fix project stability with spring/hibernate configuration