标签: sql hibernate hibernate-criteria
如何使用Hibernate标准创建case when then else? 我的SQL就是这样:
case when then else
(CASE WHEN (SELECT COUNT(*) FROM EPS.RFQCORRIGENDUM WHERE RFQID=A.RFQ_ID AND STATUS='FINAL') > 0 THEN 'YES' ELSE 'NO' END) AS CORRIGENDUMISSUED