| | |
| | | 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 org.yeshi.utils.mybatis.Column;
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsClass;
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass;
|
| | |
| | | *
|
| | | * @date 2018年6月27日
|
| | | */
|
| | | @Entity
|
| | | @Table(name = "yeshi_ec_label_")
|
| | | @org.yeshi.utils.mybatis.Table("yeshi_ec_label_class")
|
| | | public class LabelClass implements Serializable{
|
| | | @Table("yeshi_ec_label_")
|
| | | public class LabelClass {
|
| | |
|
| | | /**
|
| | | * |
| | | */
|
| | | 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")
|
| | | @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")
|
| | | @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")
|
| | | @Column(name = "lc_subclass_id")
|
| | | private GoodsSubClass goodsSubClass; // 商品子类
|
| | |
|
| | | @JoinColumn(name = "lc_createtime")
|
| | | @org.yeshi.utils.mybatis.Column(name = "lc_createtime")
|
| | | @Column(name = "lc_createtime")
|
| | | private Date createtime; // 创建时间
|
| | | |
| | |
|
| | | public Long getId() {
|
| | | return id;
|