Hibernate classes creation