Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does 'cascade-delete' in WLS 6.1 work ?!

 
Alagapan Thiagarajan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
I am trying out the Customer and Account beans ( Entity CMP 2.0 with relationship ) and
i have inserted <cascade-delete/> on Account side of the relationship in ejb-jar.xml, where
customer and account have 1:* relationship. I tried out the example in WLS 6.1 with cloudscape
(as well as oracle) and the PROBLEM here is the Account db row does NOT get deleted when the
corresponding Ccustomer row is deleted. I have associated 3 Accounts with 1 Customer and i call
remove() on my customer, i find that ejbremove() DOES get called on all the corresponding
3 Account beans before ejbremove() gets called on the customer itself, and i dont get any exception
here. But the PROBLEM is, despite ejbremove() getting called on Account bean, the DB rows which
represent the Account do NOT get deleted. Can anyone help me out plz ? Thanx in advance.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a WebLogic issue so lets put it in the WebLogic forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic