package com.yeshi.fanli.entity.bus.su.recommend;
|
|
import java.io.Serializable;
|
|
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 com.yeshi.fanli.entity.bus.recommend.RecommendSection;
|
import com.yeshi.fanli.entity.system.BusinessSystem;
|
|
@Entity
|
@Table(name = "yeshi_ec_super_recommendsection")
|
public class SuperRecommendSection implements Serializable{
|
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@Column(name = "id")
|
private long id;
|
@ManyToOne(fetch = FetchType.EAGER)
|
@JoinColumn(name = "recommendsection_id")
|
private RecommendSection recommendSection;
|
@ManyToOne(fetch = FetchType.EAGER)
|
@JoinColumn(name = "system_id")
|
private BusinessSystem system;
|
|
public SuperRecommendSection() {
|
}
|
|
public SuperRecommendSection(RecommendSection recommendSection, BusinessSystem system) {
|
super();
|
this.recommendSection = recommendSection;
|
this.system = system;
|
}
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public RecommendSection getRecommendSection() {
|
return recommendSection;
|
}
|
|
public void setRecommendSection(RecommendSection recommendSection) {
|
this.recommendSection = recommendSection;
|
}
|
|
public BusinessSystem getSystem() {
|
return system;
|
}
|
|
public void setSystem(BusinessSystem system) {
|
this.system = system;
|
}
|
}
|