example code for Spring + Hibernate