Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 2.0

 
shivani anand
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me rough idea about Cascading delete? How it overcomes the problems faced in EJB1.1?
thanks,
shivani
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sivani,
Well, i am hearing about this cascading delete for the first time, would you mind telling me what this is and any resources for finding information on this?
thanks,
 
Ruilin Yang
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the so called "cascade delete" means that when you delete an entity bean (or a record in a database table) a cascade delete will delete other entity beans according to the relationship between these beans. In this way, the referencial integrity reserved in the database. For example, in a shoping card application, orders are assembled of line items. Deleting an order should also deletes all line items. Line items shouldn't be around if their parent order is gone. Here order and line item have a composition relationship. If they are in an aggregation relationship, we do not need to perform the cascade deleting.
hope this help
Regards,
Ruilin
[ February 06, 2002: Message edited by: Rulin Yang ]
 
shivani anand
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you go to folowing site you will get some idea about cascading delete
http://www.etindia.com/changesinCMP.htm#Changes%20in%20CMP
I think Rulin is correct. I just wanted to know how it really works. If you know more about it let me know.
thanks
shivani
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Sivani,
thanks for the wonderful link!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic