字典 @author @email
| 25 | |
| 26 | */ |
| 27 | @TableName("dictionary") |
| 28 | public class DictionaryEntity<T> implements Serializable { |
| 29 | private static final long serialVersionUID = 1L; |
| 30 | |
| 31 | |
| 32 | public DictionaryEntity() { |
| 33 | |
| 34 | } |
| 35 | |
| 36 | public DictionaryEntity(T t) { |
| 37 | try { |
| 38 | BeanUtils.copyProperties(this, t); |
| 39 | } catch (IllegalAccessException | InvocationTargetException e) { |
| 40 | // TODO Auto-generated catch block |
| 41 | e.printStackTrace(); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | |
| 46 | /** |
| 47 | * 主键 |
| 48 | */ |
| 49 | @TableId(type = IdType.AUTO) |
| 50 | @ColumnInfo(comment="主键",type="bigint(20)") |
| 51 | @TableField(value = "id") |
| 52 | |
| 53 | private Long id; |
| 54 | |
| 55 | |
| 56 | /** |
| 57 | * 字段 |
| 58 | */ |
| 59 | @ColumnInfo(comment="字段",type="varchar(200)") |
| 60 | @TableField(value = "dic_code") |
| 61 | |
| 62 | private String dicCode; |
| 63 | |
| 64 | |
| 65 | /** |
| 66 | * 字段名 |
| 67 | */ |
| 68 | @ColumnInfo(comment="字段名",type="varchar(200)") |
| 69 | @TableField(value = "dic_name") |
| 70 | |
| 71 | private String dicName; |
| 72 | |
| 73 | |
| 74 | /** |
| 75 | * 编码 |
| 76 | */ |
| 77 | @ColumnInfo(comment="编码",type="int(11)") |
| 78 | @TableField(value = "code_index") |
| 79 | |
| 80 | private Integer codeIndex; |
| 81 | |
| 82 | |
| 83 | /** |
| 84 | * 编码名字 |
nothing calls this directly
no outgoing calls
no test coverage detected