Find max revision of each entity less than or equal to given revision with envers

前端 未结 2 1943
醉梦人生
醉梦人生 2020-12-11 10:41

This might be simple, but unable to find a way. I am trying to find max revision of each entity less than or equal to given revision number.

AuditQuery query         


        
2条回答
  •  被撕碎了的回忆
    2020-12-11 10:54

    I think what you are looking for the AuditEntitry.revisionNumber.max() constraint. This should maximize the revision number satisfying the nested constraints.

    See also the documentation on that matter.

提交回复
热议问题