@MappedSuperclass public class AuditEntity extends IdEntity implements AuditProjection
Constructor and Description |
---|
AuditEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.time.Instant |
getCreated()
Get when this entity was created.
|
java.time.Instant |
getUpdated()
Get the time this entity was updated.
|
int |
hashCode() |
protected void |
onCreateBaseEntity()
Updates the created and updated timestamps to be creation time.
|
protected void |
onUpdateBaseEntity()
On any update to the entity will update the update time.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getId
protected void onCreateBaseEntity()
protected void onUpdateBaseEntity()
public java.time.Instant getCreated()
getCreated
in interface AuditProjection
public java.time.Instant getUpdated()
getUpdated
in interface AuditProjection
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object