| | |
| | | package com.yeshi.fanli.entity.bus.clazz;
|
| | |
|
| | | 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.google.gson.annotations.Expose;
|
| | |
|
| | |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Entity
|
| | | @Table(name = "yeshi_ec_second_class")
|
| | | @Table("yeshi_ec_second_class")
|
| | | public class GoodsSecondClass {
|
| | | @Id
|
| | | @GeneratedValue(strategy = GenerationType.AUTO)
|
| | | |
| | | @Expose
|
| | | @Column(name = "id")
|
| | | private Long id;
|
| | | |
| | | @Expose
|
| | | private long id;
|
| | | @Expose
|
| | | @Column(name = "`name`", length = 50)
|
| | | @Column(name = "name")
|
| | | private String name;
|
| | | |
| | | @Expose
|
| | | @Column(name = "`picture`", length = 1024)
|
| | | @Column(name = "picture")
|
| | | private String picture;
|
| | | private int orderby;
|
| | | private long createtime;
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "pid")
|
| | | |
| | | @Column(name = "pid")
|
| | | private GoodsClass parent;
|
| | | @Column(name = "`key`", length = 10)
|
| | | |
| | | @Column(name = "key")
|
| | | private String key;
|
| | | |
| | | @Column(name = "orderby")
|
| | | private Integer orderby;
|
| | |
|
| | | @Column(name = "createtime")
|
| | | private Long createtime;
|
| | |
|
| | | public GoodsSecondClass() {
|
| | | }
|
| | |
| | | this.createtime = createtime;
|
| | | this.parent = parent;
|
| | | }
|
| | | |
| | | public String getKey() {
|
| | | return key;
|
| | | }
|
| | |
|
| | | public void setKey(String key) {
|
| | | this.key = key;
|
| | | }
|
| | |
|
| | | public GoodsClass getParent() {
|
| | | return parent;
|
| | | }
|
| | |
|
| | | public void setParent(GoodsClass parent) {
|
| | | this.parent = parent;
|
| | | }
|
| | |
|
| | | public long getId() {
|
| | | public Long getId() {
|
| | | return id;
|
| | | }
|
| | |
|
| | | public void setId(long id) {
|
| | | public void setId(Long id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | |
| | | this.picture = picture;
|
| | | }
|
| | |
|
| | | public int getOrderby() {
|
| | | public GoodsClass getParent() {
|
| | | return parent;
|
| | | }
|
| | |
|
| | | public void setParent(GoodsClass parent) {
|
| | | this.parent = parent;
|
| | | }
|
| | |
|
| | | public String getKey() {
|
| | | return key;
|
| | | }
|
| | |
|
| | | public void setKey(String key) {
|
| | | this.key = key;
|
| | | }
|
| | |
|
| | | public Integer getOrderby() {
|
| | | return orderby;
|
| | | }
|
| | |
|
| | | public void setOrderby(int orderby) {
|
| | | public void setOrderby(Integer orderby) {
|
| | | this.orderby = orderby;
|
| | | }
|
| | |
|
| | | public long getCreatetime() {
|
| | | public Long getCreatetime() {
|
| | | return createtime;
|
| | | }
|
| | |
|
| | | public void setCreatetime(long createtime) {
|
| | | public void setCreatetime(Long createtime) {
|
| | | this.createtime = createtime;
|
| | | }
|
| | | |
| | | }
|