@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, waitgetIdprotected void onCreateBaseEntity()
protected void onUpdateBaseEntity()
public java.time.Instant getCreated()
getCreated in interface AuditProjectionpublic java.time.Instant getUpdated()
getUpdated in interface AuditProjectionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object