package com.imooc.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;

/**
* 类目
* Created by 廖师兄
* 2017-05-07 14:30
*/
@Entity //映射数据库
@DynamicUpdate //时间自动更新
@Data // 省略set get ,需要下载lombok插件
public class ProductCategory {

/** 类目id. */
@Id
@GeneratedValue
private Integer categoryId;

/** 类目名字. */
private String categoryName;

/** 类目编号. */
private Integer categoryType;

private Date createTime;

private Date updateTime;

public ProductCategory() {
}

public ProductCategory(String categoryName, Integer categoryType) {
this.categoryName = categoryName;
this.categoryType = categoryType;
}
}

相关文章:

  • 2021-10-06
  • 2021-04-26
  • 2021-12-24
  • 2022-01-06
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
猜你喜欢
  • 2021-05-31
  • 2021-09-19
  • 2021-09-06
  • 2021-10-25
  • 2021-09-17
  • 2022-01-05
  • 2021-06-18
相关资源
相似解决方案