integration with hibernate