Date
1 - 3 of 3
Problems avoiding cascade deletion in a N-1 relation
claudio_rosati@...
Thank you for the link Andy, |
|
https://www.datanucleus.org/products/accessplatform_6_0/jdo/persistence.html#_deleting_an_object ... dependent fields ...
|
|
claudio_rosati@...
Hi all, I've followed the Unidirectional ForeignKey example for N-1 relations:
I create the User, then the Account and assign the user to it. When I persist the account both user and account are persisted. That's fine. But when I delete the account, also the user is deleted, and this is something I don't want. I've looked at the JDO annotations, trying few things but I was unable to come to a solution. I can accept to persist myself the User before the Account, but I don't want the user being deleted automatically with the account. What I'm missing? |
|