我有AuditQuery
,我希望order by
添加partition by
。
final AuditReader reader = AuditReaderFactory.get(em);
final List<Test> result = new ArrayList<Test>();
final AuditQuery query =
reader.createQuery().forRevisionsOfEntity(Test.class, false, true);
我想做类似的事情:
ORDER by (MAX(VALUE) OVER (PARTITION BY ID ORDER BY ID))
如何在AuditQuery
中完成?