You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/site/xdoc/configuration.xml
+32-22
Original file line number
Diff line number
Diff line change
@@ -151,9 +151,9 @@ SqlSessionFactory factory =
151
151
</properties>]]></source>
152
152
153
153
<p>
154
-
<spanclass="label important">NOTE</span> Also If you are used already the <code>":"</code> as property key(e.g. <code>db:username</code>)
155
-
or you are used already the ternary operator of OGNL expression(e.g. <code>${tableName != null ? tableName : 'global_constants'}</code>) on your sql definition,
156
-
you should be change the character that separate key and default value by adding a special property as follow:
154
+
<spanclass="label important">NOTE</span> This will conflict with the <code>":"</code> character in property keys (e.g. <code>db:username</code>)
155
+
or the ternary operator of OGNL expressions (e.g. <code>${tableName != null ? tableName : 'global_constants'}</code>) on a SQL definition.
156
+
If you use either and want default property values, you must change the default value separator by adding this special property:
157
157
</p>
158
158
159
159
<source><![CDATA[
@@ -209,7 +209,7 @@ SqlSessionFactory factory =
209
209
</td>
210
210
<td>
211
211
Globally enables or disables lazy loading. When enabled, all relations will be lazily loaded.
212
-
This value can be superseded for an specific relation by using the <code>fetchType</code> attribute on it.
212
+
This value can be superseded for a specific relation by using the <code>fetchType</code> attribute on it.
213
213
</td>
214
214
<td>
215
215
true | false
@@ -957,7 +957,7 @@ public class Author {
957
957
</p>
958
958
<p>
959
959
<spanclass="label important">NOTE</span>
960
-
Since version 3.4.5, The MyBatis has been supported JSR-310(Date and Time API) by default.
960
+
Since version 3.4.5, MyBatis supports JSR-310(Date and Time API) by default.
961
961
</p>
962
962
<table>
963
963
<thead>
@@ -1437,7 +1437,7 @@ public class ExampleTypeHandler extends BaseTypeHandler<String> {
1437
1437
data type until the statement is executed.
1438
1438
</p>
1439
1439
<p>
1440
-
MyBatis will know the the Java type that you want to handle with
1440
+
MyBatis will know the Java type that you want to handle with
1441
1441
this TypeHandler by introspecting its generic type, but
1442
1442
you can override this behavior by two means:
1443
1443
</p>
@@ -1450,7 +1450,7 @@ public class ExampleTypeHandler extends BaseTypeHandler<String> {
1450
1450
</li>
1451
1451
</ul>
1452
1452
1453
-
<p>Associated JDBC type can be specified by two means:</p>
1453
+
<p>The associated JDBC type can be specified by two means:</p>
1454
1454
<ul>
1455
1455
<li>
1456
1456
Adding a <code>jdbcType</code> attribute to the typeHandler element (for example: <code>jdbcType="VARCHAR"</code>).
@@ -1608,15 +1608,22 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
1608
1608
</p>
1609
1609
<source><![CDATA[// ExampleObjectFactory.java
1610
1610
public class ExampleObjectFactory extends DefaultObjectFactory {
1611
-
public Object create(Class type) {
1611
+
@Override
1612
+
public <T> T create(Class<T> type) {
1612
1613
return super.create(type);
1613
1614
}
1614
-
public Object create(Class type, List<Class> constructorArgTypes, List<Object> constructorArgs) {
1615
+
1616
+
@Override
1617
+
public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
0 commit comments