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.  [ 3 posts ] 
Author Message
 Post subject: XML Mapping - (Hibernate3 new feature)Can i save a complete
PostPosted: Tue May 09, 2006 2:38 pm 
Beginner
Beginner

Joined: Sun May 07, 2006 2:44 pm
Posts: 33
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version3]



Hey ,

There is new feature in version 3 called " Xml Mapping"

http://www.hibernate.org/hib_docs/v3/re ... l/xml.html

My question -

When i save the tree (the dom4j Node) does it save also the children of this obj?

or example let say that i exctrct the parent node from the xml and save it -
dom4jSession.saveOrUpdate("hibernate.model.Parent", parent);

Does it save also his child?

I save the parent but i saw that only the parent insert to the DB.

how can i fix this problem?


Thank you all


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 09, 2006 3:34 pm 
Beginner
Beginner

Joined: Sat Jan 31, 2004 7:19 pm
Posts: 39
child persistence of course depends on many things,
I would expect it follow the Hibernate configuration
regarding cascades - but haven't really tried that.

Did you try that with arbitrary nested elements,
or with a mapping of a cascaded set of children?

I'm in the same boat and would hope to get that working.


Top
 Profile  
 
 Post subject: I define it as cascade="all".dosnt work.please upd
PostPosted: Wed May 10, 2006 3:25 am 
Beginner
Beginner

Joined: Sun May 07, 2006 2:44 pm
Posts: 33
it work for you.

Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.