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
package com.yeshi.fanli.entity.bus.lable;
 
import java.io.Serializable;
import java.util.Date;
 
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.AdminUser;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
 
/**
 * 商品关联标签库
 * 
 * @author yj
 *
 * @date 2018年6月27日
 */
@Entity
@Table(name = "yeshi_ec_label_goods")
@org.yeshi.utils.mybatis.Table("yeshi_ec_label_goods")
public class LabelGoods implements Serializable{
    
    
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "lg_id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    @org.yeshi.utils.mybatis.Column(name = "lg_id")
    private Long id;
 
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "lg_label_id")
    @org.yeshi.utils.mybatis.Column(name = "lg_label_id")
    private Label label; // 标签id
 
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "lg_goods_id")
    @org.yeshi.utils.mybatis.Column(name = "lg_goods_id")
    private TaoBaoGoodsBrief taoBaoGoodsBrief;// 商品id
 
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "lg_create_aid")
    @org.yeshi.utils.mybatis.Column(name = "lg_create_aid")
    private AdminUser createUser; // 创建人
    
    @JoinColumn(name = "lg_weight")
    @org.yeshi.utils.mybatis.Column(name = "lg_weight")
    private Double weight; // 分类id
 
    
    @JoinColumn(name = "lg_createtime")
    @org.yeshi.utils.mybatis.Column(name = "lg_createtime")
    private Date createtime; // 创建时间
 
    @JoinColumn(name = "lg_updatetime")
    @org.yeshi.utils.mybatis.Column(name = "lg_updatetime")
    private Date updatetime; // 更新时间
 
    
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Label getLabel() {
        return label;
    }
 
    public void setLabel(Label label) {
        this.label = label;
    }
 
    public TaoBaoGoodsBrief getTaoBaoGoodsBrief() {
        return taoBaoGoodsBrief;
    }
 
    public void setTaoBaoGoodsBrief(TaoBaoGoodsBrief taoBaoGoodsBrief) {
        this.taoBaoGoodsBrief = taoBaoGoodsBrief;
    }
 
 
    public AdminUser getCreateUser() {
        return createUser;
    }
 
    public void setCreateUser(AdminUser createUser) {
        this.createUser = createUser;
    }
 
    public Date getCreatetime() {
        return createtime;
    }
 
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
 
 
    public Date getUpdatetime() {
        return updatetime;
    }
 
    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
 
    public Double getWeight() {
        return weight;
    }
 
    public void setWeight(Double weight) {
        this.weight = weight;
    }
 
}