Class Article
java.lang.Object
com.majorana.maj_orm.ORM.BaseMajoranaEntity
com.majorana.maj_orm.entities.ex1.Article
Article - An example Entity to persist to a DB,
it uses the jakarta persistance @Column annotation to name the database table
for each non transient and non static field
-
Field Summary
Fields inherited from class com.majorana.maj_orm.ORM.BaseMajoranaEntity
created, createdByUserEmail, createdByUserid, deleted, deletedAt, id, updated, updatedByUserEmail, updatedByUserid, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getArid()
getCode()
int
int
static String
int
int
float
getScore()
getTitle()
getURL()
void
setArid
(int arid) void
void
setDatestamp
(int date) void
setDescription
(String description) void
setFeedid
(int feedid) void
setImageHeight
(int h) void
setImageURL
(String imageURL) void
setImageWidth
(int w) void
setScore
(float score) void
void
Methods inherited from class com.majorana.maj_orm.ORM.BaseMajoranaEntity
getBaseFields, getCreated, getCreatedByUserEmail, getCreatedByUserid, getDeletedAt, getId, getUpdated, getUpdatedByUserEmail, getUpdatedByUserid, getUuid, isDeleted, setCreated, setCreatedByUserEmail, setCreatedByUserid, setDeleted, setDeletedAt, setId, setUpdated, setUpdatedByUserEmail, setUpdatedByUserid, setUuid, toString
-
Field Details
-
fields
- See Also:
-
-
Constructor Details
-
Article
public Article()
-
-
Method Details
-
getTableName
- Specified by:
getTableName
in classBaseMajoranaEntity
-
getFields
-
getArid
public int getArid() -
getFeedid
public int getFeedid() -
getTitle
-
getURL
-
getCode
-
getImageURL
-
getImageHeight
public int getImageHeight() -
getImageWidth
public int getImageWidth() -
getDatestamp
public int getDatestamp() -
getScore
public float getScore() -
getDescription
-
setArid
public void setArid(int arid) -
setFeedid
public void setFeedid(int feedid) -
setTitle
-
setURL
-
setCode
-
setImageURL
-
setImageHeight
public void setImageHeight(int h) -
setImageWidth
public void setImageWidth(int w) -
setDatestamp
public void setDatestamp(int date) -
setScore
public void setScore(float score) -
setDescription
-
insertSQL
-