turn jdbc into hibernate query for OfferDao class (& junit test)