Class ChangelogMapping
java.lang.Object
org.hibernate.audit.ChangelogMapping
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DefaultChangelog, TrackingModifiedEntitiesChangelogMapping
Base
@MappedSuperclass for changeset
entities, providing the standard REV (auto-generated
integer primary key) and REVTSTMP (Unix epoch
timestamp) columns. The timestamp is initialized automatically
via CreationTimestamp.
Extend this class to create a custom
@Changelog. For entity change
tracking, extend TrackingModifiedEntitiesChangelogMapping
instead.
- Since:
- 7.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()longinthashCode()voidsetId(long id) voidsetTimestamp(long timestamp) toString()
-
Constructor Details
-
ChangelogMapping
public ChangelogMapping()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getRevisionInstant
-
getTimestamp
public long getTimestamp() -
setTimestamp
public void setTimestamp(long timestamp) -
equals
-
hashCode
-
toString
-