Lukasz Antoniak commented on Bug HHH-8036

As a workaround try using "originalId.id".

getAuditReader().createQuery().forRevisionsOfEntity( IntTestEntity.class, true, true )
		.addProjection( AuditEntity.property( "originalId.id" ).max() )
		.add( AuditEntity.revisionNumber().gt( 1 ) )
		.add( AuditEntity.revisionType().eq( RevisionType.DEL ) )
		.getResultList();
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira