@MappedSuperclass public abstract class AbstractUUIDEntity extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_COLUMN
Column names of the table.
|
| Constructor and Description |
|---|
AbstractUUIDEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateUUID()
Sets an UUID for the id field (primary key of the table) if not set.
|
Timestamp |
getCreatedTimestamp()
Returns the created timestamp.
|
String |
getId()
Returns the primary key value of the entity.
|
Timestamp |
getModifiedTimestamp()
Returns the modified timestamp of the test case.
|
void |
setCreatedTimestamp(Timestamp createdTimestamp)
Sets the created time stamp.
|
void |
setId(String id)
Sets the primary key value of the entity.
|
void |
setModifiedTimestamp(Timestamp modifiedTimestamp)
Sets the modified timestamp of the test case.
|
public static final String ID_COLUMN
public void generateUUID()
The length of the generated UUID is always 36
public String getId()
public void setId(String id)
id - primary key value of the entitypublic Timestamp getCreatedTimestamp()
public void setCreatedTimestamp(Timestamp createdTimestamp)
createdTimestamp - created time stamppublic Timestamp getModifiedTimestamp()
public void setModifiedTimestamp(Timestamp modifiedTimestamp)
modifiedTimestamp - modified test case timestampCopyright © 2019 WSO2. All rights reserved.