增加系统管理pojo的字段注释

This commit is contained in:
zhuangqian 2016-09-08 17:10:11 +08:00
parent 808cca7b5d
commit 7ae69a4e3d
9 changed files with 90 additions and 81 deletions

View File

@ -12,24 +12,26 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_user") @Table(name = "tfw_user")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//用户表
public class User extends BaseModel { public class User extends BaseModel {
private Integer id; private Integer id; //主键
private String account; private String account; //账号
private Integer deptid; private Integer deptid; //部门id
private String email; private String email; //邮箱
private String name; private String name; //姓名
private String password; private String password; //密码
private String salt; private String salt; //密码盐
private String phone; private String phone; //手机号
private String roleid; private String roleid; //角色id
private Integer sex; private Integer sex; //性别
private Integer status; private Integer status; //状态
private Integer version; private Integer version; //版本号
private Date birthday; private Date birthday; //生日
private Date createtime; private Date createtime; //创建时间
@AutoID @AutoID //mysql自增
@SeqID(name = "SEQ_USER") @SeqID(name = "SEQ_USER") //oracle sequence自增
//两者只需要写一个,根据数据库不同来选择
public Integer getId() { public Integer getId() {
return id; return id;
} }

View File

@ -12,14 +12,15 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_attach") @Table(name = "tfw_attach")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//附件表
public class Attach extends BaseModel { public class Attach extends BaseModel {
private Integer id; private Integer id; //主键
private String code; private String code; //编码
private Integer creater; private Integer creater; //创建人
private String name; private String name; //附件名
private Integer status; private Integer status; //状态
private String url; private String url; //附件地址
private Date createtime; private Date createtime; //上传时间
@AutoID @AutoID
@SeqID(name = "SEQ_ATTACH") @SeqID(name = "SEQ_ATTACH")

View File

@ -25,14 +25,15 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_dept") @Table(name = "tfw_dept")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//部门表
public class Dept extends BaseModel { public class Dept extends BaseModel {
private Integer id; private Integer id; //主键
private String fullname; private String fullname; //全称
private Integer num; private Integer num; //排序号
private Integer pid; private Integer pid; //上级部门
private String simplename; private String simplename; //简称
private String tips; private String tips; //备注
private Integer version; private Integer version; //版本号
@AutoID @AutoID
@SeqID(name = "SEQ_DEPT") @SeqID(name = "SEQ_DEPT")

View File

@ -25,14 +25,15 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_dict") @Table(name = "tfw_dict")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//字典表
public class Dict extends BaseModel { public class Dict extends BaseModel {
private Integer id; private Integer id; //主键
private String code; private String code; //字典编码
private String name; private String name; //字典名
private Integer num; private Integer num; //排序号
private Integer pid; private Integer pid; //父字典
private String tips; private String tips; //备注
private Integer version; private Integer version; //版本号
@AutoID @AutoID
@SeqID(name = "SEQ_DICT") @SeqID(name = "SEQ_DICT")

View File

@ -10,16 +10,16 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_generate") @Table(name = "tfw_generate")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//在线开发
public class Generate extends BaseModel { public class Generate extends BaseModel {
private Integer id; //主键
private Integer id; private String modelname; //实体类名
private String modelname; private String name; //模块名称
private String name; private String realpath; //物理地址
private String realpath; private String packagename; //package包名
private String packagename; private String pkname; //主键名
private String pkname; private String tablename; //表名
private String tablename; private String tips; //备注
private String tips;
@AutoID @AutoID
@SeqID(name = "SEQ_GENERATE") @SeqID(name = "SEQ_GENERATE")

View File

@ -25,23 +25,24 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_menu") @Table(name = "tfw_menu")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//菜单表
public class Menu extends BaseModel { public class Menu extends BaseModel {
private Integer id; private Integer id; //主键
private String code; private String code; //菜单编号
private String alias; private String alias; //菜单别名
private String icon; private String icon; //图标
private String isopen; private String isopen; //是否打开tab
private String istemplate; private String istemplate; //是否模板
private Integer levels; private Integer levels; //菜单层级
private String name; private String name; //菜单名称
private Integer num; private Integer num; //排序号
private String path; private String path; //地址
private String pcode; private String pcode; //父编号
private String source; private String source; //数据源
private Integer status; private Integer status; //状态
private String tips; private String tips; //备注
private String url; private String url; //接口地址
private Integer version; private Integer version; //版本号
@AutoID @AutoID
@SeqID(name = "SEQ_MENU") @SeqID(name = "SEQ_MENU")

View File

@ -25,15 +25,16 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_parameter") @Table(name = "tfw_parameter")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//参数表
public class Parameter extends BaseModel { public class Parameter extends BaseModel {
private Integer id; private Integer id; //主键
private String code; private String code; //参数编号
private String name; private String name; //参数名
private Integer num; private Integer num; //排序号
private String para; private String para; //参数值
private Integer status; private Integer status; //状态
private String tips; private String tips; //备注
private Integer version; private Integer version; //版本号
@AutoID @AutoID
@SeqID(name = "SEQ_PARAMETER") @SeqID(name = "SEQ_PARAMETER")

View File

@ -25,14 +25,15 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_role") @Table(name = "tfw_role")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//角色表
public class Role extends BaseModel { public class Role extends BaseModel {
private Integer id; private Integer id; //主键
private Integer deptid; private Integer deptid; //部门id
private String name; private String name; //角色名
private Integer num; private Integer num; //排序号
private Integer pid; private Integer pid; //父角色
private String tips; private String tips; //角色别名(用于Permission注解权限检查)
private Integer version; private Integer version; //版本号
@AutoID @AutoID
@SeqID(name = "SEQ_ROLE") @SeqID(name = "SEQ_ROLE")

View File

@ -25,11 +25,12 @@ import com.smallchill.core.base.model.BaseModel;
@Table(name = "tfw_role_ext") @Table(name = "tfw_role_ext")
@BindID(name = "id") @BindID(name = "id")
@SuppressWarnings("serial") @SuppressWarnings("serial")
//角色代理表
public class RoleExt extends BaseModel { public class RoleExt extends BaseModel {
private Integer id; private Integer id; //主键
private String rolein; private String rolein; //额外附加的权限
private String roleout; private String roleout; //额外剔除的权限
private String userid; private String userid; //用户id
@AutoID @AutoID
@SeqID(name = "SEQ_ROLE_EXT") @SeqID(name = "SEQ_ROLE_EXT")