Class TrackingModifiedEntitiesChangelogMapping
java.lang.Object
org.hibernate.audit.ChangelogMapping
org.hibernate.audit.TrackingModifiedEntitiesChangelogMapping
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DefaultTrackingModifiedEntitiesChangelog
Extension of
ChangelogMapping that tracks which
entity types were modified in each revision. The entity
names are stored in a REVCHANGES table as an
@ElementCollection.
When a custom changelog entity extends this class (or
has a property annotated with
@ModifiedEntities),
cross-type revision queries are automatically enabled via
AuditLog.getEntityTypesModifiedAt(Object),
AuditLog.findAllEntitiesModifiedAt(Object), and
AuditLog.findAllEntitiesGroupedByModificationType(Object).
Extend this class to create a custom tracking changeset
entity, or use the ready-made
DefaultTrackingModifiedEntitiesChangelog.
- Since:
- 7.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ChangelogMapping
getId, getRevisionInstant, getTimestamp, setId, setTimestamp
-
Constructor Details
-
TrackingModifiedEntitiesChangelogMapping
public TrackingModifiedEntitiesChangelogMapping()
-
-
Method Details
-
getModifiedEntityNames
-
setModifiedEntityNames
-
equals
- Overrides:
equalsin classChangelogMapping
-
hashCode
public int hashCode()- Overrides:
hashCodein classChangelogMapping
-
toString
- Overrides:
toStringin classChangelogMapping
-