廖师兄springboot微信点餐开发中相关注解使用解释


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;
}
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM