Using Hibernate entity