Contains the code of Ems with hibernate