• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a question about cascade-delete

 
ZheMin Lin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB Specs:
10.3.4.2 Cascade-delete:
_______________________________
...
The use of cascade-delete causes only the entity object or objects in the relationship for which it is specified to be deleted. It does not cause the deletion to be further cascaded to other entity objects, unless they are participants in relationship roles for which cascade-delete has also been specified.
_______________________________
My understanding about the statements above is "Cascade-delete" can be propagated from one relationship to another. But I'm not very sure.
Need comments!
 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It says "unless they are participants in relationship roles for which cascade-delete has also been specified"
This means that the propagation is not automatic. You need to mention Cascade-delete in all the cascaded objects for which you want this to be effective.
Thanks
 
ZheMin Lin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx, Sudd.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic