@Superclass
public abstract class BaseEntity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
createTime
The date and time when the entity was created as number of milliseconds since
January 1, 1970, 00:00:00 GMT.
|
protected long |
updateTime
The date and time when the entity was updated as number of milliseconds since
January 1, 1970, 00:00:00 GMT.
|
Constructor and Description |
---|
BaseEntity() |
Modifier and Type | Method and Description |
---|---|
long |
getModifiedTime()
Gets the date and time when the entity was modified as number of milliseconds since
January 1, 1970, 00:00:00 GMT.
|
void |
onBeforeInsert()
Sets the create time before the inserting the entity into the database table.
|
void |
onBeforeUpdate()
Sets the create time before the inserting the entity into the database table.
|
protected long createTime
protected long updateTime
@PreInsert public void onBeforeInsert()
@PreUpdate public void onBeforeUpdate()
public long getModifiedTime()