-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: xdoclet 1.2b4 and cascade all-delete-orphan
PostPosted: Thu Dec 18, 2003 9:30 am 
Newbie

Joined: Tue Dec 09, 2003 10:43 am
Posts: 7
I'm using Hibernate 2.0.3 and XDoclet to define mapping files; I have a one-to-many bidirectional association (a strict parent-child relationship) and wanted to mark the cascade attribute as "all-delete-orphan". If I understand well, marking it this way should cause Hibernate to delete the child object by just removing it from the parent. This option appears in the Hibernate doc, and in the hibernate-mapping dtd file, but Xdoclet throws an exception saying it is not allowed.
One solution is of course to use merge-files, but the relationship in question is in a nested subclass, so I should put in the merge file an entire class hierarchy !!! (this is another xdoclet problem ...)
I hope I have been clear.
Thanks everyone

Renato


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 02, 2004 2:35 pm 
Regular
Regular

Joined: Fri Sep 05, 2003 12:01 am
Posts: 80
Location: Bogot
Has this problem been fixed yet? Cause if not we could fix it...

_________________
Mauricio Hern


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 6:23 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I can't remember but you can easily update the xdoclet template to add all-delete-orphan

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 1:02 pm 
Regular
Regular

Joined: Fri Sep 05, 2003 12:01 am
Posts: 80
Location: Bogot
yeap.. its been fixed in xdoclet 1.2 final

_________________
Mauricio Hern


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.