我有以下查询是..
SELECT * FROM POS_took WHERE DELETEDDATE IS NOTNULL
我有相应的pojo....
class postook
{
//all the properties defined here
private DateTime deleted;
//and it corresponding setters and egetters is defined.
请告知相应的 hql ,我尝试过的如下所示,但它也不是 rite one ..
session.createQuery("from postook where deleted is notnull")