Hibernate Envers will generate the following exception:
org.hibernate.envers.exception.AuditException: This criterion can only be used on a property that is a relation to another property.
at org.hibernate.envers.query.criteria.internal.RelatedAuditEqualityExpression.addToQuery(RelatedAuditEqualityExpression.java:51)
at org.hibernate.envers.query.criteria.internal.AbstractAtomicExpression.addToQuery(AbstractAtomicExpression.java:48)
at org.hibernate.envers.query.criteria.internal.RelatedAuditEqualityExpression.addToQuery(RelatedAuditEqualityExpression.java:22)
at org.hibernate.envers.query.internal.impl.RevisionsOfEntityQuery.list(RevisionsOfEntityQuery.java:94)
at org.hibernate.envers.query.internal.impl.AbstractAuditQuery.getResultList(AbstractAuditQuery.java:107)