我需要使用带有多个字段的投影的动态查询。类似的东西
DynamicQuery query = DynamicQueryFactoryUtil.forClass(Purchase.class); query.add(PropertyFactoryUtil.forName("primaryKey.purchaseId,primaryKey.otherId").in(DynamicQueryFactoryUtil.forClass(ResponseField.class)
.add(PropertyFactoryUtil.forName("something").eq("something"))
.setProjection(ProjectionFactoryUtil.property("primaryKey.purchaseId,primaryKey.otherId"))));
提前谢谢了!