Skip to content

Commit 5eb15d0

Browse files
committed
Fix documenation.
Replace the deprecated `NamingStrategy.getReverseColumnName(PersistentPropertyPathExtension path)` with `getReverseColumnName(RelationalPersistentEntity<?> owner)` Closes #1693
1 parent fbc3bf0 commit 5eb15d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The table of the referenced entity is expected to have two additional columns: O
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.
6969

70-
For `List`, `Set`, and `Map` naming of the back reference can be controlled by implementing `NamingStrategy.getReverseColumnName(PersistentPropertyPathExtension path)` and `NamingStrategy.getKeyColumn(RelationalPersistentProperty property)`, respectively.
70+
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

@@ -111,7 +111,7 @@ You activate this behaviour by calling `setForeignKeyNaming(ForeignKeyNaming.IGN
111111
For `List` and `Map` references an additional column is required for holding the list index or map key.
112112
It is based on the foreign key column with an additional `_KEY` suffix.
113113

114-
If you want a completely different way of naming these back references you may implement `NamingStrategy.getReverseColumnName(PersistentPropertyPathExtension path)` in a way that fits your needs.
114+
If you want a completely different way of naming these back references you may implement `NamingStrategy.getReverseColumnName(RelationalPersistentEntity<?> owner)` in a way that fits your needs.
115115

116116
.Declaring and setting an `AggregateReference`
117117
[source,java]

0 commit comments

Comments
 (0)