1 Star 16 Fork 15

Tison/springBoot JPA代码生成器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
SysUser 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
Tison 提交于 2019-07-20 01:05 . 更新 SysUser
package app.itw.sdd.entity;
import lombok.Data;
import java.io.Serializable;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* @author Tison
* 用户表
*/
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "sys_user")
public class SysUser implements Serializable {
/**
* 主键
* default value: null
*/
@Id
@Column(name = "id", nullable = false, length = 11)
private Integer id;
/**
* 名称
* default value: null
*/
@Column(name = "name", nullable = false, length = 32)
private String name;
/**
* 电话
* default value: null
*/
@Column(name = "phone", nullable = false, length = 32)
private String phone;
/**
* 密码
* default value: null
*/
@Column(name = "password", nullable = false, length = 64)
private String password;
/**
* 个性说明
* default value: null
*/
@Column(name = "explain", nullable = true, length = 500)
private String explain;
/**
* 性别
* default value: '男'
*/
@Column(name = "sex", nullable = false, length = 2)
private String sex;
/**
* 状态:0正常
* default value: 0
*/
@Column(name = "status", nullable = false, length = 2)
private Integer status;
/**
* 头像
* default value: ''
*/
@Column(name = "head_img", nullable = false, length = 1000)
private String headImg;
/**
* 注册日期
* default value: null
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Column(name = "create_date", nullable = false)
private java.util.Date createDate;
/**
* 更新时间
* default value: null
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Column(name = "update_time", nullable = true)
private java.util.Date updateTime;
/**
* 会员级别:0普通,1-vip1,2-vip2
* default value: 0
*/
@Column(name = "vip_level", nullable = false, length = 5)
private Integer vipLevel;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/xietingsheng/springbootjpadaimachengqi.git
git@gitee.com:xietingsheng/springbootjpadaimachengqi.git
xietingsheng
springbootjpadaimachengqi
springBoot JPA代码生成器
master

搜索帮助