Hibernate and marriage of frontend and backend