DATAJDBC-374 - Polishing.

Clarified the effects of collections on nullable embedded entities.

Original pull request: #154.
This commit is contained in:
Jens Schauder
2019-05-22 12:46:15 +02:00
parent 55a3f9c372
commit ebe76a0c7f
2 changed files with 9 additions and 2 deletions

View File

@@ -332,6 +332,9 @@ public class MyEntity {
<1> Shortcut for `@Embedded(onEmpty = USE_NULL)`.
====
Embedded entities containing a `Collection` or a `Map` will always be considered non empty since they will at least contain the empty collection or map.
Such an entity will therefore never be `null` even when using @Embedded(onEmpty = USE_NULL).
[[jdbc.entity-persistence.state-detection-strategies]]
=== Entity State Detection Strategies