move Hibernate entity-manager declaration