I don't know what your exception is, but, for restricting on primary keys of an entity, you should use the AuditEntity.id().eq(...) methods.
The "originalId" is a synthetic id which consists of the original id (pk) and the revision number. This is the primary key of the audit entity corresponding to an entity.
Ahh...yep, that's exactly what I've been looking for,
thanks alot for the fast reply!