package com.qxueyou.scc.org.model;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import javax.persistence.CascadeType;
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.FetchType;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.Id;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.NamedQuery;
|
import javax.persistence.Table;
|
|
import org.hibernate.annotations.GenericGenerator;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import com.qxueyou.scc.base.model.ITrace;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
/**
|
* app首页banner 实体类
|
*/
|
@Entity
|
@Table(name="org_banner")
|
@NamedQuery(name="OrgBanner.findAll", query="SELECT o FROM OrgBanner o")
|
public class OrgBanner implements Serializable,ITrace {
|
|
private static final long serialVersionUID = 1L;
|
|
/** 机构banner模块 */
|
public static final String ORG_BANNER_ORG = "ORG";
|
/** 课程超市banner模块 */
|
public static final String ORG_BANNER_COURSE_MARKET_APP = "COURSE_MARKET_APP";
|
|
@Id
|
@GeneratedValue(generator = "hibernate-uuid")
|
@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
|
@Column(name="BANNER_ID", unique=true, nullable=false, length=32)
|
private String bannerId;
|
|
/** 图片路径 */
|
@Column(name="IMG_PATH",length=256)
|
private String imgPath;
|
|
/** 机构编号 */
|
@Column(name="ORG_ID",length=32)
|
private String orgId;
|
|
/** 图片序号 */
|
@Column(name="PHOTO_ORDER")
|
private int photoOrder;
|
|
/** 图片名称*/
|
@Column(name="PHOTO_NAME",length=64)
|
private String photoName;
|
|
/** 图片说明 */
|
@Column(name="PERSENTATION",length=225)
|
private String persentation;
|
|
@Column(name="CREATE_ID", nullable=false, length=32)
|
@JsonIgnore
|
private String createId;
|
|
@Column(name="CREATE_TIME", nullable=false)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonIgnore
|
private Date createTime;
|
|
@Column(name="CREATOR", nullable=false, length=100)
|
@JsonIgnore
|
private String creator;
|
|
@Column(name="DELETE_FLAG", nullable=false)
|
private boolean deleteFlag;
|
|
@Column(name="UPDATE_ID", length=32)
|
@JsonIgnore
|
private String updateId;
|
|
@Column(name="UPDATE_TIME", nullable=false)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonIgnore
|
private Date updateTime;
|
|
@Column(name="UPDATOR", length=100)
|
@JsonIgnore
|
private String updator;
|
|
/** URL */
|
@Column(name="LINK_URL")
|
private String linkUrl;
|
|
/** TYPE */
|
@Column(name="TYPE")
|
private Integer type;
|
|
/** 链接类型(1、网址) */
|
public static final int LINK_TYPE_WEBSITE = 1;
|
|
/** TITLE */
|
@Column(name="TITLE")
|
private String title;
|
|
/** CONTENT */
|
@Column(name="CONTENT")
|
private String content;
|
|
/** MODEL */
|
@Column(name="MODEL")
|
private String model;
|
|
@ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
|
@JoinColumn(name = "ORG_ID",referencedColumnName="ORGANIZATION_ID",insertable=false,updatable=false)
|
@JsonIgnore
|
private Organization organization;
|
|
/**
|
* @return the bannerId
|
*/
|
public String getBannerId() {
|
return bannerId;
|
}
|
|
/**
|
* @param bannerId the bannerId to set
|
*/
|
public void setBannerId(String bannerId) {
|
this.bannerId = bannerId;
|
}
|
|
/**
|
* @return the imgPath
|
*/
|
public String getImgPath() {
|
return imgPath;
|
}
|
|
/**
|
* @param imgPath the imgPath to set
|
*/
|
public void setImgPath(String imgPath) {
|
this.imgPath = imgPath;
|
}
|
|
/**
|
* @return the orgId
|
*/
|
public String getOrgId() {
|
return orgId;
|
}
|
|
/**
|
* @param orgId the orgId to set
|
*/
|
public void setOrgId(String orgId) {
|
this.orgId = orgId;
|
}
|
|
/**
|
* @return the photoOrder
|
*/
|
public int getPhotoOrder() {
|
return photoOrder;
|
}
|
|
/**
|
* @param photoOrder the photoOrder to set
|
*/
|
public void setPhotoOrder(int photoOrder) {
|
this.photoOrder = photoOrder;
|
}
|
|
/**
|
* @return the photoName
|
*/
|
public String getPhotoName() {
|
return photoName;
|
}
|
|
/**
|
* @param photoName the photoName to set
|
*/
|
public void setPhotoName(String photoName) {
|
this.photoName = photoName;
|
}
|
|
/**
|
* @return the persentation
|
*/
|
public String getPersentation() {
|
return persentation;
|
}
|
|
/**
|
* @param persentation the persentation to set
|
*/
|
public void setPersentation(String persentation) {
|
this.persentation = persentation;
|
}
|
|
/**
|
* @return the createId
|
*/
|
public String getCreateId() {
|
return createId;
|
}
|
|
/**
|
* @param createId the createId to set
|
*/
|
public void setCreateId(String createId) {
|
this.createId = createId;
|
}
|
|
/**
|
* @return the createTime
|
*/
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
/**
|
* @param createTime the createTime to set
|
*/
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
/**
|
* @return the creator
|
*/
|
public String getCreator() {
|
return creator;
|
}
|
|
/**
|
* @param creator the creator to set
|
*/
|
public void setCreator(String creator) {
|
this.creator = creator;
|
}
|
|
/**
|
* @return the deleteFlag
|
*/
|
public boolean getDeleteFlag() {
|
return deleteFlag;
|
}
|
|
/**
|
* @param deleteFlag the deleteFlag to set
|
*/
|
public void setDeleteFlag(boolean deleteFlag) {
|
this.deleteFlag = deleteFlag;
|
}
|
|
/**
|
* @return the updateId
|
*/
|
public String getUpdateId() {
|
return updateId;
|
}
|
|
/**
|
* @param updateId the updateId to set
|
*/
|
public void setUpdateId(String updateId) {
|
this.updateId = updateId;
|
}
|
|
/**
|
* @return the updateTime
|
*/
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
/**
|
* @param updateTime the updateTime to set
|
*/
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
/**
|
* @return the updator
|
*/
|
public String getUpdator() {
|
return updator;
|
}
|
|
/**
|
* @param updator the updator to set
|
*/
|
public void setUpdator(String updator) {
|
this.updator = updator;
|
}
|
|
/**
|
* @return the linkUrl
|
*/
|
public String getLinkUrl() {
|
return linkUrl;
|
}
|
|
/**
|
* @param linkUrl the linkUrl to set
|
*/
|
public void setLinkUrl(String linkUrl) {
|
this.linkUrl = linkUrl;
|
}
|
|
/**
|
* @return the type
|
*/
|
public Integer getType() {
|
return type;
|
}
|
|
/**
|
* @param type the type to set
|
*/
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
/**
|
* @return the title
|
*/
|
public String getTitle() {
|
return title;
|
}
|
|
/**
|
* @param title the title to set
|
*/
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
/**
|
* @return the content
|
*/
|
public String getContent() {
|
return content;
|
}
|
|
/**
|
* @param content the content to set
|
*/
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
/**
|
* @return the model
|
*/
|
public String getModel() {
|
return model;
|
}
|
|
/**
|
* @param model the model to set
|
*/
|
public void setModel(String model) {
|
this.model = model;
|
}
|
|
/**
|
* @return the organization
|
*/
|
public Organization getOrganization() {
|
return organization;
|
}
|
|
/**
|
* @param organization the organization to set
|
*/
|
public void setOrganization(Organization organization) {
|
this.organization = organization;
|
}
|
|
|
}
|