Hibernate realization example