Hibernate config problem solving

2 commits at one time