Hibernate spring configuration reworked