Skip to content

Commit d28ec8d

Browse files
committed
Fix reference to custom converters.
The reference was both broken and somehow got moved to the wrong place. Closes #1949
1 parent b930d57 commit d28ec8d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc

+2-3
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ The table of the referenced entity is expected to have an additional column with
6666
The table of the referenced entity is expected to have two additional columns: One named based on the referencing entity for the foreign key (see <<jdbc.entity-persistence.types.backrefs>>) and one with the same name and an additional `_key` suffix for the map key.
6767

6868
* `List<some entity>` is mapped as a `Map<Integer, some entity>`. The same additional columns are expected and the names used can be customized in the same way.
69-
69+
+
7070
For `List`, `Set`, and `Map` naming of the back reference can be controlled by implementing `NamingStrategy.getReverseColumnName(RelationalPersistentEntity<?> owner)` and `NamingStrategy.getKeyColumn(RelationalPersistentProperty property)`, respectively.
7171
Alternatively you may annotate the attribute with `@MappedCollection(idColumn="your_column_name", keyColumn="your_key_column_name")`.
7272
Specifying a key column for a `Set` has no effect.
7373

74+
* Types for which you registered suitable xref:#mapping.explicit.converters[custom converters].
7475

7576

7677
[[mapping.usage.annotations]]
@@ -132,8 +133,6 @@ p1.bestFriend = AggregateReference.to(p2.id);
132133
You should not include attributes in your entities to hold the actual value of a back reference, nor of the key column of maps or lists.
133134
If you want these value to be available in your domain model we recommend to do this in a `AfterConvertCallback` and store the values in transient values.
134135

135-
* Types for which you registered suitable [[jdbc.custom-converters, custom conversions]].
136-
137136
:mapped-collection: true
138137
:embedded-entities: true
139138
include::partial$mapping.adoc[]

0 commit comments

Comments
 (0)