We're updating the issue view to help you get more done. 

No scalar functions can be used in the Envers Query API

Description

While HQL supports scalar functions (see user guide 15.27) the envers query API does not support them.

I suggest to change the signature of the method AuditProperty.function(String) to return an AuditProperty instead of an AuditProjection. Since AuditProperty implements AuditProjection this would not break existing code. However this change will break binary compatibility, is this a problem?

Code example:

1 2 3 4 5 AuditReader reader = ...; reader.createQuery() .forEntitiesAtRevision(EntityA.class, 3) .add(AuditEntity.property("number") .function("STR").eqProperty("string"))

Environment

None

Status

Assignee

Chris Cranford

Reporter

Felix Feisst

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major