Skip to content

Commit c20b63e

Browse files
committed
DATAJDBC-520 - Polishing.
Put the parts about references back. Original pull request: #206.
1 parent 32f997e commit c20b63e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/asciidoc/jdbc.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ public class MyEntity {
271271
----
272272
====
273273

274-
The {javadoc-base}org/springframework/data/relational/core/mapping/MappedCollection.html[`@MappedCollection`] annotation can be used on Sets, Lists, and Maps.
274+
The {javadoc-base}org/springframework/data/relational/core/mapping/MappedCollection.html[`@MappedCollection`]
275+
annotation can be used on a reference type (one-to-one relationship) or on Sets, Lists, and Maps (one-to-many relationship).
275276
`idColumn` element of the annotation provides a custom name for the foreign key column referencing the id column in the other table.
276277
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:
277278

0 commit comments

Comments
 (0)