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.RecommendSpecial;
|
import com.yeshi.fanli.entity.system.BusinessSystem;
|
|
@Entity
|
@Table(name = "yeshi_ec_super_recommendspecial")
|
public class SuperRecommendSpecial 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 = "recommendspecial_id")
|
private RecommendSpecial recommendSpecial;
|
@ManyToOne(fetch = FetchType.EAGER)
|
@JoinColumn(name = "system_id")
|
private BusinessSystem system;
|
|
public SuperRecommendSpecial() {
|
// TODO Auto-generated constructor stub
|
}
|
|
public SuperRecommendSpecial(RecommendSpecial recommendSpecial, BusinessSystem system) {
|
super();
|
this.recommendSpecial = recommendSpecial;
|
this.system = system;
|
}
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public RecommendSpecial getRecommendSpecial() {
|
return recommendSpecial;
|
}
|
|
public void setRecommendSpecial(RecommendSpecial recommendSpecial) {
|
this.recommendSpecial = recommendSpecial;
|
}
|
|
public BusinessSystem getSystem() {
|
return system;
|
}
|
|
public void setSystem(BusinessSystem system) {
|
this.system = system;
|
}
|
}
|