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
FieldsFields inherited from class com.majorana.maj_orm.ORM.BaseMajoranaEntity
created, createdByUserEmail, createdByUserid, deleted, deletedAt, id, updated, updatedByUserEmail, updatedByUserid, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetArid()getCode()intintstatic StringintintfloatgetScore()getTitle()getURL()voidsetArid(int arid) voidvoidsetDatestamp(int date) voidsetDescription(String description) voidsetFeedid(int feedid) voidsetImageHeight(int h) voidsetImageURL(String imageURL) voidsetImageWidth(int w) voidsetScore(float score) voidvoidMethods 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:
getTableNamein 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
-