yujian
2019-01-22 88b54772dbcf5ecab1e2316e4e4626ac901b8908
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
package com.yeshi.fanli.entity.bus.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.common.JumpDetailV2;
 
//推荐Banner  v.2
@Entity
@Table(name = "yeshi_ec_recommend_banner_v2")
public class RecommendBannerV2 implements Serializable{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    private long id;
    
    @Column(name = "`name`")
    private String name;
    
    @Column(name = "`picture`",length = 256)
    private String picture;// 图片链接
    
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "jumpid")
    private JumpDetailV2 jumpDetail;// 跳转详情
    
    @Column(name = "`params`",length = 256)
    private String params;// 跳转参数
    
    @Column(name = "`createtime`")
    private long createtime;
    
    @Column(name = "`orderby`")
    private int orderby;// 值越小越�?
    
    @Column(name = "`show`")
    private boolean show;// 是否显示
    
    
 
    public RecommendBannerV2() {}
    
    
    public RecommendBannerV2(JumpDetailV2 jumpDetail, String params,
            String picture, long createtime, int orderby, boolean show) {
        super();
        this.jumpDetail = jumpDetail;
        this.params = params;
        this.picture = picture;
        this.createtime = createtime;
        this.orderby = orderby;
        this.show = show;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public boolean isShow() {
        return show;
    }
 
    public void setShow(boolean show) {
        this.show = show;
    }
 
    public long getId() {
        return id;
    }
 
    public void setId(long id) {
        this.id = id;
    }
 
    public JumpDetailV2 getJumpDetail() {
        return jumpDetail;
    }
 
    public void setJumpDetail(JumpDetailV2 jumpDetail) {
        this.jumpDetail = jumpDetail;
    }
 
    public String getParams() {
        return params;
    }
 
    public void setParams(String params) {
        this.params = params;
    }
 
    public String getPicture() {
        return picture;
    }
 
    public void setPicture(String picture) {
        this.picture = picture;
    }
 
    public long getCreatetime() {
        return createtime;
    }
 
    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }
 
    public int getOrderby() {
        return orderby;
    }
 
    public void setOrderby(int orderby) {
        this.orderby = orderby;
    }
}