hql = "from BOCO_HLR_GTT where not exists (from CUST_HLR_GTT where BOCO_HLR_GTT.START_GT = CUST_HLR_GTT.START_GT)"; 这个是求两个表差集的的HQL,老是通不过, 写成SQL是能通过的.为什么啊.SQL: 能通过
select * from BOCO_HLR_GTT where not exists (
select * from CUST_HLR_GTT where BOCO_HLR_GTT.START_GT = CUST_HLR_GTT.START_GT);