TableField.java 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. package com.izouma.awesomeadmin.model;
  2. import com.fasterxml.jackson.annotation.JsonAutoDetect;
  3. import com.fasterxml.jackson.annotation.JsonInclude;
  4. /**
  5. * table_field 实体类
  6. * Fri May 04 13:38:24 CST 2018 Suo Chen Cheng
  7. */
  8. @JsonAutoDetect
  9. @JsonInclude(JsonInclude.Include.NON_NULL)
  10. public class TableField {
  11. /**
  12. * id
  13. */
  14. private Integer id;
  15. /**
  16. * 字段名
  17. */
  18. private String name;
  19. /**
  20. * 驼峰式名字
  21. */
  22. private String modelName;
  23. /**
  24. * 备注
  25. */
  26. private String remark;
  27. /**
  28. * 数据类型(数据库)
  29. */
  30. private String jdbcType;
  31. /**
  32. * java类型
  33. */
  34. private String javaType;
  35. /**
  36. * 长度
  37. */
  38. private Integer length;
  39. /**
  40. * 小数长度
  41. */
  42. private Integer decimalPlaces;
  43. /**
  44. * 默认值
  45. */
  46. private String defaultValue;
  47. /**
  48. * 非空
  49. */
  50. private Boolean notNull;
  51. /**
  52. * 主键
  53. */
  54. private Boolean primaryKey;
  55. /**
  56. * 自增
  57. */
  58. private Boolean autoIncrease;
  59. /**
  60. * 在列表中显示
  61. */
  62. private Boolean showInList;
  63. /**
  64. * 在表单中显示
  65. */
  66. private Boolean showInForm;
  67. /**
  68. * 可以搜索
  69. */
  70. private Boolean searchable;
  71. /**
  72. * 表单类型
  73. */
  74. private String formType;
  75. /**
  76. * 搜索方式
  77. */
  78. private String searchMethod;
  79. /**
  80. * 表单必填
  81. */
  82. private Boolean required;
  83. /**
  84. * 表单验证
  85. */
  86. private Boolean validate;
  87. /**
  88. * 最短长度
  89. */
  90. private Integer minLength;
  91. /**
  92. * 最大长度
  93. */
  94. private Integer maxLength;
  95. /**
  96. * 最小值
  97. */
  98. private String min;
  99. /**
  100. * 最大值
  101. */
  102. private String max;
  103. /**
  104. * 验证类型
  105. */
  106. private String validatorType;
  107. /**
  108. * xml里jdbcType
  109. */
  110. private String sqlType;
  111. public void setId(Integer id) {
  112. this.id = id;
  113. }
  114. public Integer getId() {
  115. return id;
  116. }
  117. public void setName(String name) {
  118. this.name = name;
  119. }
  120. public String getName() {
  121. return name;
  122. }
  123. public void setRemark(String remark) {
  124. this.remark = remark;
  125. }
  126. public String getRemark() {
  127. return remark;
  128. }
  129. public void setJdbcType(String jdbcType) {
  130. this.jdbcType = jdbcType;
  131. }
  132. public String getJdbcType() {
  133. return jdbcType;
  134. }
  135. public void setJavaType(String javaType) {
  136. this.javaType = javaType;
  137. }
  138. public String getJavaType() {
  139. return javaType;
  140. }
  141. public void setLength(Integer length) {
  142. this.length = length;
  143. }
  144. public Integer getLength() {
  145. return length;
  146. }
  147. public void setDecimalPlaces(Integer decimalPlaces) {
  148. this.decimalPlaces = decimalPlaces;
  149. }
  150. public Integer getDecimalPlaces() {
  151. return decimalPlaces;
  152. }
  153. public void setDefaultValue(String defaultValue) {
  154. this.defaultValue = defaultValue;
  155. }
  156. public String getDefaultValue() {
  157. return defaultValue;
  158. }
  159. public void setNotNull(Boolean notNull) {
  160. this.notNull = notNull;
  161. }
  162. public Boolean getNotNull() {
  163. return notNull;
  164. }
  165. public void setPrimaryKey(Boolean primaryKey) {
  166. this.primaryKey = primaryKey;
  167. }
  168. public Boolean getPrimaryKey() {
  169. return primaryKey;
  170. }
  171. public void setAutoIncrease(Boolean autoIncrease) {
  172. this.autoIncrease = autoIncrease;
  173. }
  174. public Boolean getAutoIncrease() {
  175. return autoIncrease;
  176. }
  177. public void setShowInList(Boolean showInList) {
  178. this.showInList = showInList;
  179. }
  180. public Boolean getShowInList() {
  181. return showInList;
  182. }
  183. public void setShowInForm(Boolean showInForm) {
  184. this.showInForm = showInForm;
  185. }
  186. public Boolean getShowInForm() {
  187. return showInForm;
  188. }
  189. public void setSearchable(Boolean searchable) {
  190. this.searchable = searchable;
  191. }
  192. public Boolean getSearchable() {
  193. return searchable;
  194. }
  195. public void setFormType(String formType) {
  196. this.formType = formType;
  197. }
  198. public String getFormType() {
  199. return formType;
  200. }
  201. public void setSearchMethod(String searchMethod) {
  202. this.searchMethod = searchMethod;
  203. }
  204. public String getSearchMethod() {
  205. return searchMethod;
  206. }
  207. public void setRequired(Boolean required) {
  208. this.required = required;
  209. }
  210. public Boolean getRequired() {
  211. return required;
  212. }
  213. public void setValidate(Boolean validate) {
  214. this.validate = validate;
  215. }
  216. public Boolean getValidate() {
  217. return validate;
  218. }
  219. public void setMinLength(Integer minLength) {
  220. this.minLength = minLength;
  221. }
  222. public Integer getMinLength() {
  223. return minLength;
  224. }
  225. public void setMaxLength(Integer maxLength) {
  226. this.maxLength = maxLength;
  227. }
  228. public Integer getMaxLength() {
  229. return maxLength;
  230. }
  231. public void setMin(String min) {
  232. this.min = min;
  233. }
  234. public String getMin() {
  235. return min;
  236. }
  237. public void setMax(String max) {
  238. this.max = max;
  239. }
  240. public String getMax() {
  241. return max;
  242. }
  243. public void setValidatorType(String validatorType) {
  244. this.validatorType = validatorType;
  245. }
  246. public String getValidatorType() {
  247. return validatorType;
  248. }
  249. public String getSqlType() {
  250. return sqlType;
  251. }
  252. public void setSqlType(String sqlType) {
  253. this.sqlType = sqlType;
  254. }
  255. public String getModelName() {
  256. return modelName;
  257. }
  258. public void setModelName(String modelName) {
  259. this.modelName = modelName;
  260. }
  261. }