Skip to content

Commit 558b12c

Browse files
committed
Updated documentation.
1 parent bc40f3a commit 558b12c

File tree

5 files changed

+78
-0
lines changed

5 files changed

+78
-0
lines changed

src/site/es/xdoc/configuration.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,22 @@ SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, environment,
377377
false
378378
</td>
379379
</tr>
380+
<tr>
381+
<td>
382+
returnInstanceForEmptyRow
383+
</td>
384+
<td>
385+
MyBatis, by default, returns <code>null</code> when all the columns of a returned row are NULL.
386+
When this setting is enabled, MyBatis returns an empty instance instead.
387+
Note that it is also applied to nested results (i.e. collectioin and association). Since: 3.4.2
388+
</td>
389+
<td>
390+
true | false
391+
</td>
392+
<td>
393+
false
394+
</td>
395+
</tr>
380396
<tr>
381397
<td>
382398
logPrefix

src/site/ja/xdoc/configuration.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,20 @@ SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, environment,
407407
false
408408
</td>
409409
</tr>
410+
<tr>
411+
<td>
412+
returnInstanceForEmptyRow
413+
</td>
414+
<td>
415+
取得した列が全て NULL だった場合、デフォルトの動作では <code>null</code> が返りますが、 returnInstanceForEmptyRow に true を設定すると空のインスタンスが返るようになります。この動作はネストされた結果をマッピングする際にも適用されます。導入されたバージョン: 3.4.2
416+
</td>
417+
<td>
418+
true | false
419+
</td>
420+
<td>
421+
false
422+
</td>
423+
</tr>
410424
<tr>
411425
<td>
412426
logPrefix

src/site/ko/xdoc/configuration.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,22 @@ SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, environment,
386386
false
387387
</td>
388388
</tr>
389+
<tr>
390+
<td>
391+
returnInstanceForEmptyRow
392+
</td>
393+
<td>
394+
MyBatis, by default, returns <code>null</code> when all the columns of a returned row are NULL.
395+
When this setting is enabled, MyBatis returns an empty instance instead.
396+
Note that it is also applied to nested results (i.e. collectioin and association). Since: 3.4.2
397+
</td>
398+
<td>
399+
true | false
400+
</td>
401+
<td>
402+
false
403+
</td>
404+
</tr>
389405
<tr>
390406
<td>
391407
logPrefix

src/site/xdoc/configuration.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,22 @@ SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, environment,
468468
false
469469
</td>
470470
</tr>
471+
<tr>
472+
<td>
473+
returnInstanceForEmptyRow
474+
</td>
475+
<td>
476+
MyBatis, by default, returns <code>null</code> when all the columns of a returned row are NULL.
477+
When this setting is enabled, MyBatis returns an empty instance instead.
478+
Note that it is also applied to nested results (i.e. collectioin and association). Since: 3.4.2
479+
</td>
480+
<td>
481+
true | false
482+
</td>
483+
<td>
484+
false
485+
</td>
486+
</tr>
471487
<tr>
472488
<td>
473489
logPrefix

src/site/zh/xdoc/configuration.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,22 @@ SqlSessionFactory factory = sqlSessionFactoryBuilder.build(reader, environment,
387387
false
388388
</td>
389389
</tr>
390+
<tr>
391+
<td>
392+
returnInstanceForEmptyRow
393+
</td>
394+
<td>
395+
MyBatis, by default, returns <code>null</code> when all the columns of a returned row are NULL.
396+
When this setting is enabled, MyBatis returns an empty instance instead.
397+
Note that it is also applied to nested results (i.e. collectioin and association). Since: 3.4.2
398+
</td>
399+
<td>
400+
true | false
401+
</td>
402+
<td>
403+
false
404+
</td>
405+
</tr>
390406
<tr>
391407
<td>
392408
logPrefix

0 commit comments

Comments
 (0)