work with hibernate entities