my dog learned polymorphism*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubts over cascade xml mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Doubts over cascade xml mapping" Watch "Doubts over cascade xml mapping" New topic
Author

Doubts over cascade xml mapping

Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

Hi all. I am reading EJB 3.0 in preparation for SCBCD. one of the xml annotations has caught my eye and I am uncertain of the correct way to annotate cascading in entity relationships in xml. One example in the book uses <cascade>ALL</cascade> and another uses <cascade-all/> Can I use both or is there a standard? What about the other types of cascading?


SCJP 6.0, SCJD (400/400), SCBCD for JEE 5, SCWCD 1.4 I do videos for development at
http://www.youtube.com/user/thejartender?feature=mhee
I am probably the only developer ever to have had an orange sized brain tumor in my brain while learning development!!
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3013
    
  35

As far as I remember, it should be <cascade-all>
Not sure whether the other one works.


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

Devaka Cooray wrote:As far as I remember, it should be <cascade-all>
Not sure whether the other one works.


Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubts over cascade xml mapping
 
Similar Threads
Hibernate Cascade
Hibernate ClassCastException
Cascade Issue
Difference between delete and orphan-delete
How to specify relationship in mapping file