Saturday, 17 August 2013

Orphan removal in JPA 2 based on only one plain string

Orphan removal in JPA 2 based on only one plain string

I have the following situation:
class Container {
...
String key;
...
}
class Item {
String containerKey;
}
I require a mechanism to automatically delete all items "referencing"
containers, something like cascading.
Is there such a mechanism in JPA 2?

No comments:

Post a Comment