improve some Hibernate realisations