DATAJDBC-520 - Polishing.

Put the parts about references back.

Original pull request: #206.
This commit is contained in:
Jens Schauder
2020-04-14 14:41:20 +02:00
parent 7790f13a4b
commit ddcb914513

View File

@@ -240,7 +240,8 @@ public class MyEntity {
----
====
The {javadoc-base}org/springframework/data/relational/core/mapping/MappedCollection.html[`@MappedCollection`] annotation can be used on Sets, Lists, and Maps.
The {javadoc-base}org/springframework/data/relational/core/mapping/MappedCollection.html[`@MappedCollection`]
annotation can be used on a reference type (one-to-one relationship) or on Sets, Lists, and Maps (one-to-many relationship).
`idColumn` element of the annotation provides a custom name for the foreign key column referencing the id column in the other table.
In the following example the corresponding table for the `MySubEntity` class has a `NAME` column, and the `CUSTOM_MY_ENTITY_ID_COLUMN_NAME` column of the `MyEntity` id for relationship reasons: