Class AbstractEntity
java.lang.Object
org.summerboot.jexpress.integration.jpa.AbstractEntity
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractEntityEx,Entity
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the value of versionvoidsetCreatedTs(OffsetDateTime createdTs) voidsetUpdatedTs(OffsetDateTime updatedTs) voidsetVersion(int version) Set the value of versionprotected void
-
Field Details
-
version
protected int version -
createdTs
-
updatedTs
-
-
Constructor Details
-
AbstractEntity
protected AbstractEntity()
-
-
Method Details
-
updateTimestamp
protected void updateTimestamp() -
getVersion
public long getVersion()Get the value of version- Returns:
- the value of version
-
setVersion
public void setVersion(int version) Set the value of version- Parameters:
version- new value of version
-
getCreatedTs
-
setCreatedTs
-
getUpdatedTs
-
setUpdatedTs
-