package com.yeshi.fanli.entity.bus.su.search;
|
|
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.search.HotSearch;
|
import com.yeshi.fanli.entity.system.System;
|
|
|
@Entity
|
@Table(name="yeshi_ec_super_hot_search")
|
public class SuperHotSearch implements Serializable{
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@Column(name = "id")
|
private Long id;
|
|
@JoinColumn(name="system_id")
|
@ManyToOne(fetch = FetchType.EAGER)
|
private System system;
|
|
@JoinColumn(name="hotSearch_id")
|
@ManyToOne(fetch = FetchType.EAGER)
|
private HotSearch hotSearch;
|
|
public SuperHotSearch() {
|
}
|
|
public SuperHotSearch(System system, HotSearch hotSearch) {
|
super();
|
this.system = system;
|
this.hotSearch = hotSearch;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public System getSystem() {
|
return system;
|
}
|
|
public void setSystem(System system) {
|
this.system = system;
|
}
|
|
public HotSearch getHotSearch() {
|
return hotSearch;
|
}
|
|
public void setHotSearch(HotSearch hotSearch) {
|
this.hotSearch = hotSearch;
|
}
|
|
}
|