-->
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: parent child cascade save issue
PostPosted: Mon Mar 14, 2005 3:50 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
Hi,
I have a parent class with multiple child classes.The parent class in my case is consumers and one of its child classes is otheridentifiers. I have defined the cascade=all option for ever child class in the parent class mapping file.
Hibernate generates sql statements for every child class except for otheridentifiers. Other identifiers is the only class with a composite key is that the reason why it is generating only update statements and nto an insert sql statement. Please let me know since I have spent a considerable amount fo time on this issue.

thanks,
Jeevak


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 14, 2005 7:51 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
The otheridentifiers class is the only child class which has assigned identifiers. The identifier is a composite key. I do an explicit save operation on the consumer class so there is no conflict on whether the operation needed to be performed is save or an update.

Could someone please help me out with this issue?

Jeevak


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 14, 2005 9:15 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
On defining the unsaved-value="undefined" for ym composite id I get a SAXException error telling me to restrict the choice to any or none. I checked the hibernate mapping.dtd and it has undefined as one of its enumerations.

Please let me know where Img oing wrong.


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.