Hibernate and Spring implementation