com.alogient.cameleon.sdk.community.blog.dao.model.BlogArticleComment Maven / Gradle / Ivy
package com.alogient.cameleon.sdk.community.blog.dao.model;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Entity
@Table(name = "Comment")
public class BlogArticleComment implements Serializable {
/**
* The comment's primary key
*/
private Integer id;
/**
* The associated culture
*/
private BlogArticleCulture blogArticleCulture;
/**
* The article creation date
*/
private Date creationDate;
/**
* The article last modification date
*/
private Date lastModified;
/**
* The article's title
*/
private String title;
/**
* The article's text
*/
private String text;
/**
* The article's authorId
*/
private String authorId;
/**
* The article's authorFirstName
*/
private String authorFirstName;
/**
* The article's authorLastName
*/
private String authorLastName;
/**
* @return the blogId
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "CommentId", nullable = false)
public Integer getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Integer id) {
this.id = id;
}
/**
* @return the culture
*/
@ManyToOne(fetch = FetchType.LAZY, optional = false, cascade = CascadeType.ALL)
@JoinColumn(name = "ArticleCultureId", referencedColumnName = "Id")
public BlogArticleCulture getBlogArticleCulture() {
return blogArticleCulture;
}
/**
* @param blogArticleCulture the culture to set
*/
public void setBlogArticleCulture(BlogArticleCulture blogArticleCulture) {
this.blogArticleCulture = blogArticleCulture;
}
/**
* @return the creationDate
*/
@Column(name = "CreationDate", nullable = false)
@Basic(optional=false)
public Date getCreationDate() {
return creationDate;
}
/**
* @param creationDate set the creationDate
*/
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
/**
* @return the lastModified
*/
@Column(name = "LastModified", nullable = false)
@Basic(optional = false)
public Date getLastModified() {
return lastModified;
}
/**
* @param lastModified the lastModified to set
*/
public void setLastModified(Date lastModified) {
this.lastModified = lastModified;
}
/**
* @return the lastModified
*/
@Column(name = "title")
@Basic
public String getTitle() {
return title;
}
/**
* @param title the title to set
*/
public void setTitle(String title) {
this.title = title;
}
/**
* @return the lastModified
*/
@Column(name = "text", nullable = false)
@Basic(optional = false)
public String getText() {
return text;
}
/**
* @param text the text to set
*/
public void setText(String text) {
this.text = text;
}
/**
* @return the authorId
*/
@Column(name = "AuthorId", nullable = false)
@Basic(optional = false)
public String getAuthorId() {
return authorId;
}
/**
* @param authorId the authorId to set
*/
public void setAuthorId(String authorId) {
this.authorId = authorId;
}
/**
* @return the authorFirstName
*/
@Column(name = "AuthorFirstName", nullable = false)
@Basic(optional = false)
public String getAuthorFirstName() {
return authorFirstName;
}
/**
* @param authorFirstName the authorFirstName to set
*/
public void setAuthorFirstName(String authorFirstName) {
this.authorFirstName = authorFirstName;
}
/**
* @return the authorLastName
*/
@Column(name = "AuthorLastName", nullable = false)
@Basic(optional = false)
public String getAuthorLastName() {
return authorLastName;
}
/**
* @param authorLastName the authorLastName to set
*/
public void setAuthorLastName(String authorLastName) {
this.authorLastName = authorLastName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy