Hibernate configuration with spring and entitys