Adding methods for knowing if an entityName is marked to be resolved by core (@Audited(targetAuditMode='NOT_AUDITED')
isEntityNameNotAudited()
Adding method to resolve the entityName for an entity retrieved previously by envers.
getEntityName()
Adding tests cases:
- MappedSuperclass audited at class level with a NotAuditedSubclass and:
- Audited subclass at class level
- Audited subclass at method/field level
- MappedSuperclass audited at method/field level with a NotAuditedSubclass and:
- Audited subclass at class level
- Audited subclass at method/field level
- Read audited properties from subclasses first, then check recursively on superclasses.
- Chech on superclasses only if a class is audited
- Calculate if the "current" class of the recursion is audited at class level.
- Created ComponentAuditedPropertiesReader subclass for AuditedPropertiesReader to use for reading component audited properties inside classes
- Created a protected method in AuditedPropertiesReader, letting the subclass do their job.
- Ordered the code to be more understandable.