hibernate,高级查询之指定字段查询,并返回对应实体
String alias = “user_”; //查询时的table別名
DetachedCriteria dc = DetachedCriteria.forClass(User.class,alias);
ProjectionList pList = Projections.projectionList();
pList.add(Projections.property(alias + ...
原创
2018-07-12 10:37:13 ·
2484 阅读 ·
0 评论