首页>代码>SpringBoot整合mybatis实现自动创建数据库表自动建表,mybatis逆向生成数据库表>/springboot-mybatis-actable/src/main/java/com/simon/springbootmybatisactable/entity/SysUser.java
package com.simon.springbootmybatisactable.entity; import com.gitee.sunchenbin.mybatis.actable.annotation.Column; import com.gitee.sunchenbin.mybatis.actable.annotation.Table; import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; import java.util.Date; /** * @author Simon */ @Table(name = "sys_user") public class SysUser { @Column(name = "id", type = MySqlTypeConstant.BIGINT, isKey = true, isAutoIncrement = true) private Long id; @Column(name = "login_name", type = MySqlTypeConstant.VARCHAR, length = 64, isNull = false, isUnique = true) private String loginName; @Column(name = "password", type = MySqlTypeConstant.VARCHAR, length = 64, isNull = false) private String password; @Column(name = "salt", type = MySqlTypeConstant.VARCHAR, length = 64, isNull = false) private String salt; @Column(name = "sex", type = MySqlTypeConstant.INT) private Integer sex; @Column(name = "status", type = MySqlTypeConstant.INT, isNull = false) private Integer status; @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 64) private String name; @Column(name = "nick_name", type = MySqlTypeConstant.VARCHAR, length = 64) private String nickName; @Column(name = "phone", type = MySqlTypeConstant.VARCHAR, length = 64) private String phone; @Column(name = "email", type = MySqlTypeConstant.VARCHAR, length = 64) private String email; @Column(name = "birthday", type = MySqlTypeConstant.DATETIME) private Date birthday; @Column(name = "head_img_url", type = MySqlTypeConstant.VARCHAR, length = 255) private String headImgUrl; @Column(name = "role_id", type = MySqlTypeConstant.BIGINT, isNull = false) private Long roleId; @Column(name = "create_time", type = MySqlTypeConstant.DATETIME) private Date createTime; @Column(name = "create_name", type = MySqlTypeConstant.VARCHAR, length = 20) private String createName; @Column(name = "modify_time", type = MySqlTypeConstant.DATETIME) private Date modifyTime; @Column(name = "modify_name", type = MySqlTypeConstant.VARCHAR, length = 20) private String modifyName; }
最近浏览更多
Oxygeni LV6
7月14日
加油干阳神 LV9
5月21日
denliv_hui LV13
4月26日
微信网友_6888487558615040 LV6
3月1日
wangbo21 LV1
2023年11月16日
张晨曦 LV4
2023年11月15日
Seaskye LV14
2023年11月10日
3334004690 LV10
2023年11月1日
maniheim LV7
2023年10月24日
shuangfu LV25
2023年10月23日