aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 2885
    
  13

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


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
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
Difference between delete and orphan-delete
Hibernate ClassCastException
Hibernate Cascade
How to specify relationship in mapping file
Cascade Issue