When custom revision entity is placed in package which name started with "by" (I'm from Belarus) and later when I'm trying to retrieve revisions of my audited entity (NumericFieldValue in this example, but that's not important), the exception rises:
{code:java} org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: by near line 1, column 68 [select e__, r from by.st.archive.domain.NumericFieldValue_AUD e__, by.st.archive.domain.UserRevisionEntity r where e__.originalId.id in (:_p0) and e__.originalId.REV.id = r.id order by e__.originalId.REV.id asc] {code}
{code:java} getAuditReader().createQuery() .forRevisionsOfEntity( NumericFieldValue.class, false, true ) .add( AuditEntity.id().in( ids ) ) .getResultList() {code}
If I move my custom revision entity to another package (e.g. starting with "com") - everything works fine. |
|