hibernate criteria添加 sql条件

deptCr.add(Restrictions.sqlRestriction("{alias}.id in(select id from table where xx = xxx"));

猜你喜欢

转载自snowelf.iteye.com/blog/2042836