You can use HQL to also query audit data. Usually, the entity name for audit entities is the fully qualified class name + _AUD suffix e.g.
select e
from MyEntity e join com.mycompany.MyEntity_AUD eAud on e.id = eAud.originalId.id
You can use HQL to also query audit data. Usually, the entity name for audit entities is the fully qualified class name + _AUD suffix e.g.
select e
from MyEntity e join com.mycompany.MyEntity_AUD eAud on e.id = eAud.originalId.id