java.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "data": [
  3. {
  4. "expression": "${pk}",
  5. "text": "主键对象,同${column}"
  6. },
  7. {
  8. "expression": "${context}",
  9. "text": "",
  10. "children": [
  11. {
  12. "expression": "${context.dbName}",
  13. "text": "数据库名"
  14. },
  15. {
  16. "expression": "${context.packageName}",
  17. "text": "包名"
  18. },
  19. {
  20. "expression": "${context.javaBeanName}",
  21. "text": "Java类名"
  22. },
  23. {
  24. "expression": "${context.javaBeanNameLF}",
  25. "text": "Java类名且首字母小写"
  26. },
  27. {
  28. "expression": "${context.pkName}",
  29. "text": "表主键名"
  30. },
  31. {
  32. "expression": "${context.javaPkName}",
  33. "text": "表主键对应的java字段名"
  34. },
  35. {
  36. "expression": "${context.javaPkType}",
  37. "text": "主键的java类型"
  38. },
  39. {
  40. "expression": "${context.mybatisPkType}",
  41. "text": "主键对应的mybatis类型"
  42. }
  43. ]
  44. },
  45. {
  46. "expression": "${table}",
  47. "text": "",
  48. "children": [
  49. {
  50. "expression": "${table.tableName}",
  51. "text": "数据库表名"
  52. },
  53. {
  54. "expression": "${table.comment}",
  55. "text": "表注释"
  56. }
  57. ]
  58. },
  59. {
  60. "expression": "#foreach($column in $columns) #end",
  61. "text": "",
  62. "children": [
  63. {
  64. "expression": "${velocityCount}",
  65. "text": "foreach循环下标,从1开始"
  66. },
  67. {
  68. "expression": "${column.columnName}",
  69. "text": "表中字段名"
  70. },
  71. {
  72. "expression": "${column.type}",
  73. "text": "字段的数据库类型"
  74. },
  75. {
  76. "expression": "${column.javaFieldName}",
  77. "text": "java字段名"
  78. },
  79. {
  80. "expression": "${column.javaFieldNameUF}",
  81. "text": "java字段名首字母大写"
  82. },
  83. {
  84. "expression": "${column.javaType}",
  85. "text": "字段的java类型"
  86. },
  87. {
  88. "expression": "${column.javaTypeBox}",
  89. "text": "字段的java装箱类型,如Integer"
  90. },
  91. {
  92. "expression": "${column.isIdentity}",
  93. "text": "是否自增,返回boolean"
  94. },
  95. {
  96. "expression": "${column.isPk}",
  97. "text": "是否主键,返回boolean"
  98. },
  99. {
  100. "expression": "${column.isIdentityPk}",
  101. "text": "是否自增主键,返回boolean"
  102. },
  103. {
  104. "expression": "${column.mybatisJdbcType}",
  105. "text": "mybatis定义的jdbcType"
  106. },
  107. {
  108. "expression": "${column.comment}",
  109. "text": "字段注释"
  110. }
  111. ]
  112. }
  113. ]
  114. }