In case of @OneToMany bidirectional associations, without any definitions of cascade. When we delete the entity owner, it might happen that the associates entities would still keep the reference to the, now deleted, entity owner. Thus, if we try to create another entity owner, recycling the id owned by the former, we could have associations, between the latter and associated entities, never defined by the user.
It This seems affect only grid and document dialects, such as MongoDB or Infinispan. On the other hand , graph dialects, like Neo4j, have no issue. Probability Probabily because the latter latters do not need to handle inverse the inverses of bidirectional associations. Test case: [^CleanJoinColumnsAfterDeleteReferencedEntitiesTest.patch]
|
|