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