Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 6883a4f

Browse files
committed
Add documentation for handling duplicate columns
1 parent dde0799 commit 6883a4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/config.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ Choosing SQL format contained in exception messages
131131
Return a ``SqlLogType`` from the ``getExceptionSqlLogType``.
132132
The default SqlLogType contains the formatted SQL in exception messages.
133133

134+
Handling duplicate columns
135+
--------------------------
136+
137+
Return a ``DuplicateColumnHandler`` from the ``getDuplicateColumnHandler`` method.
138+
In result set mappings, if a duplicate column for an entity class is found,
139+
the ``DuplicateColumnHandler`` handles the situation.
140+
141+
The default ``DuplicateColumnHandler`` does nothing.
142+
To throw a ``DuplicateColumnException``, return a ``ThrowingDuplicateColumnHandler``.
143+
134144
Handling unknown columns
135145
------------------------
136146

0 commit comments

Comments
 (0)