transaction code from Generic hibernate DAO