admin
2019-03-14 eed607d87b2eee1f09b4a28da614f3ad0b46601d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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.RecommendBanner;
import com.yeshi.fanli.entity.system.BusinessSystem;
 
@Entity
@Table(name = "yeshi_ec_super_recommendbanner")
public class SuperRecommendBanner 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 = "recommendbanner_id")
    private RecommendBanner recommendBanner;
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "system_id")
    private BusinessSystem system;
 
    public SuperRecommendBanner() {
    }
    
    public SuperRecommendBanner(RecommendBanner recommendBanner, BusinessSystem system) {
        super();
        this.recommendBanner = recommendBanner;
        this.system = system;
    }
 
    public long getId() {
        return id;
    }
 
    public void setId(long id) {
        this.id = id;
    }
 
    public RecommendBanner getRecommendBanner() {
        return recommendBanner;
    }
 
    public void setRecommendBanner(RecommendBanner recommendBanner) {
        this.recommendBanner = recommendBanner;
    }
 
    public BusinessSystem getSystem() {
        return system;
    }
 
    public void setSystem(BusinessSystem system) {
        this.system = system;
    }
}