hibernate - How to get the state for a given revision for a list of IDs in Envers -


i have project using hibernate envers store audit info. have list of ids , revision number , information entities in id list given revision.

is possible so?

my research led me auditreader.getquery() can create query forentitiesatrevision , on, not able send id select entities like.

the problems if can't that, have make 1 query per entity, cause thousands of requests (i have list of 1000 ids), or every entity , query on java side, may not (i have many entities). because of that, may decide write own query, avoid.

i think should able use auditentity.id().in(collectionofids) constraint query.


Comments