Class BaseMajoranaEntity
java.lang.Object
com.majorana.maj_orm.entities.ex1.BaseMajoranaEntity
The base entity any Maj DB entity is a super class of
include integer id for sql dbs and a UUID for cassandra
and a created, modified and deleted dates to provide
a audit trail of usage of the data
-
Field Summary
Modifier and TypeFieldDescriptionint
boolean
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
abstract String
int
getId()
abstract String
int
getUuid()
boolean
void
setCreated
(LocalDateTime created) void
setCreatedByUserEmail
(String createdByUserEmail) void
setCreatedByUserid
(int createdByUserid) void
setDeleted
(boolean deleted) void
setDeletedAt
(LocalDateTime deletedAt) void
setId
(int id) void
setUpdated
(LocalDateTime updated) void
setUpdatedByUserEmail
(String updatedByUserEmail) void
setUpdatedByUserid
(int updatedByUserid) void
toString()
-
Field Details
-
id
public int id -
uuid
-
deleted
public boolean deleted -
deletedAt
-
createdByUserid
public int createdByUserid -
updatedByUserid
public int updatedByUserid -
created
-
updated
-
createdByUserEmail
-
updatedByUserEmail
-
-
Constructor Details
-
BaseMajoranaEntity
public BaseMajoranaEntity()
-
-
Method Details
-
getTableName
-
getBaseFields
-
getFields
-
getUuid
-
setUuid
-
getId
public int getId() -
setId
public void setId(int id) -
isDeleted
public boolean isDeleted() -
setDeleted
public void setDeleted(boolean deleted) -
getCreatedByUserid
public int getCreatedByUserid() -
setCreatedByUserid
public void setCreatedByUserid(int createdByUserid) -
getCreated
-
setCreated
-
getUpdated
-
setUpdated
-
getCreatedByUserEmail
-
setCreatedByUserEmail
-
getDeletedAt
-
setDeletedAt
-
getUpdatedByUserid
public int getUpdatedByUserid() -
setUpdatedByUserid
public void setUpdatedByUserid(int updatedByUserid) -
getUpdatedByUserEmail
-
setUpdatedByUserEmail
-
toString
-