// parameter name
PredicateOperand param = dobj.param("name");
// property name
PredicateOperand column = dobj.get("name");
// compare the column with the parameter
Predicate compare = column.greaterThan(param);
// set the where clause into the query
dobj.where(compare);
// create a query instance
Query query = session.createQuery(dobj);