MyColumnInfo.java 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package com.xjrsoft.common.model.datasource;
  2. import lombok.Data;
  3. /**
  4. * 字段信息
  5. * @Author: tzx
  6. * @Date: 2022/4/25 11:46
  7. */
  8. @Data
  9. public class MyColumnInfo {
  10. /**
  11. * 数据库字段名
  12. */
  13. private String column;
  14. /**
  15. * entity 属性名
  16. */
  17. private String property;
  18. /**
  19. * entity 属性类型
  20. */
  21. private String propertyType;
  22. /**
  23. * 数据库字段类型
  24. */
  25. private String dataType;
  26. /**
  27. * 字段长度
  28. */
  29. private Integer dataLength;
  30. /**
  31. * 是否为空
  32. */
  33. private Boolean nullable;
  34. /**
  35. * 是否为主键
  36. */
  37. private Boolean primaryKey;
  38. /**
  39. * 是否为自增
  40. */
  41. private Boolean autoIncrement;
  42. /**
  43. * 字段注释
  44. */
  45. private String columnComment;
  46. /**
  47. * 字段默认值
  48. */
  49. private String columnDefault;
  50. }