integrate with hibernate