We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00a0a7f + ebf95ee commit 16c8f89Copy full SHA for 16c8f89
src/main/java/io/mybatis/provider/EntityColumn.java
@@ -182,10 +182,22 @@ public String variables() {
182
public String variables(String prefix) {
183
return "#{" + property(prefix)
184
+ jdbcTypeVariables().orElse("")
185
+ + javaTypeVariables().orElse("")
186
+ typeHandlerVariables().orElse("")
187
+ numericScaleVariables().orElse("") + "}";
188
}
189
190
+ /**
191
+ * java类型 {, javaType=java.lang.String}
192
+ */
193
+ public Optional<String> javaTypeVariables() {
194
+ Class<?> javaType = this.javaType();
195
+ if (javaType != null) {
196
+ return Optional.of(", javaType=" + javaType.getName());
197
+ }
198
+ return Optional.empty();
199
200
+
201
/**
202
* 数据库类型 {, jdbcType=VARCHAR}
203
*/
0 commit comments