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.  [ 1 post ] 
Author Message
 Post subject: Saving single child in collection
PostPosted: Fri Nov 13, 2009 7:22 am 
Newbie

Joined: Fri May 04, 2007 4:59 am
Posts: 2
Hi!

I have the following situation: I have Payment object with it's PaymentItems collection containing PaymentItem objects. To be more precise, both Payment and PaymentItem objects inherit IPayment and IPaymentItem types which is mapped through <subclass> type of inheritance. I have set inverse attribute in mapping files, and I am able to save all objects.

Is it possible to save PaymentItem (by calling Save(PaymentItem) method) with referenced Payment, but not to save other PaymentItem objects in Payment's PaymentItems collection?

Any suggestion is appreciated.


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

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.