Implements an AbstractDAO as a generic DAO working with hibernate