| | |
| | | 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.bus.clazz.GoodsClass;
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass;
|
| | |
|
| | | /**
|
| | | * 商品关联标签库
|
| | | * |
| | | * @author yj
|
| | | *
|
| | | * @date 2018年6月27日
|
| | | */
|
| | | @Entity
|
| | | @Table(name = "yeshi_ec_label_")
|
| | | @org.yeshi.utils.mybatis.Table("yeshi_ec_label_class")
|
| | | public class LabelClass implements Serializable{
|
| | |
|
| | | /**
|
| | | * |
| | | */
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | @Id
|
| | | @Column(name = "lc_id")
|
| | | @GeneratedValue(strategy = GenerationType.AUTO)
|
| | | @org.yeshi.utils.mybatis.Column(name = "lc_id")
|
| | | private Long id;
|
| | |
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "lc_label_id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "lc_label_id")
|
| | | private Label label; // 标签id
|
| | |
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "lc_class_id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "lc_class_id")
|
| | | private GoodsClass goodClass;// 商品大类
|
| | |
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "lc_subclass_id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "lc_subclass_id")
|
| | | private GoodsSubClass goodsSubClass; // 商品子类
|
| | |
|
| | | @JoinColumn(name = "lc_createtime")
|
| | | @org.yeshi.utils.mybatis.Column(name = "lc_createtime")
|
| | | private Date createtime; // 创建时间
|
| | |
|
| | | 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 GoodsClass getGoodClass() {
|
| | | return goodClass;
|
| | | }
|
| | |
|
| | | public void setGoodClass(GoodsClass goodClass) {
|
| | | this.goodClass = goodClass;
|
| | | }
|
| | |
|
| | | public GoodsSubClass getGoodsSubClass() {
|
| | | return goodsSubClass;
|
| | | }
|
| | |
|
| | | public void setGoodsSubClass(GoodsSubClass goodsSubClass) {
|
| | | this.goodsSubClass = goodsSubClass;
|
| | | }
|
| | |
|
| | | public Date getCreatetime() {
|
| | | return createtime;
|
| | | }
|
| | |
|
| | | public void setCreatetime(Date createtime) {
|
| | | this.createtime = createtime;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.entity.bus.lable; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import org.yeshi.utils.generater.mybatis.Column; |
| | | import org.yeshi.utils.generater.mybatis.Table; |
| | | |
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsClass; |
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass; |
| | | |
| | | /** |
| | | * 商品关联标签库 |
| | | * |
| | | * @author yj |
| | | * |
| | | * @date 2018年6月27日 |
| | | */ |
| | | @Table("yeshi_ec_label_") |
| | | public class LabelClass { |
| | | |
| | | |
| | | @Column(name = "lc_id") |
| | | private Long id; |
| | | |
| | | @Column(name = "lc_label_id") |
| | | private Label label; // 标签id |
| | | |
| | | @Column(name = "lc_class_id") |
| | | private GoodsClass goodClass;// 商品大类 |
| | | |
| | | @Column(name = "lc_subclass_id") |
| | | private GoodsSubClass goodsSubClass; // 商品子类 |
| | | |
| | | @Column(name = "lc_createtime") |
| | | private Date createtime; // 创建时间 |
| | | |
| | | |
| | | 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 GoodsClass getGoodClass() { |
| | | return goodClass; |
| | | } |
| | | |
| | | public void setGoodClass(GoodsClass goodClass) { |
| | | this.goodClass = goodClass; |
| | | } |
| | | |
| | | public GoodsSubClass getGoodsSubClass() { |
| | | return goodsSubClass; |
| | | } |
| | | |
| | | public void setGoodsSubClass(GoodsSubClass goodsSubClass) { |
| | | this.goodsSubClass = goodsSubClass; |
| | | } |
| | | |
| | | public Date getCreatetime() { |
| | | return createtime; |
| | | } |
| | | |
| | | public void setCreatetime(Date createtime) { |
| | | this.createtime = createtime; |
| | | } |
| | | |
| | | } |