Hi, I think you need to set cascade to true on your customer mapping.
I'm no guru on this subject by any means but it might be what you are after. Paul -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Shane C Sent: 05 January 2010 21:59 To: nhusers Subject: [nhusers] Need associated Ids on Save Assume we are using seqhilo and we have the following... Customer has many -> Order When I get a new Order in I add it to the Customer and then SaveOrUpdate the customer. At this point my Order won't have an Id until I call a Flush(). After a bit of reading I'm not sure how to get Order to have an Id without saving it directly and then adding it to the Customer. There is talk about Persist() but it's not guaranteed to provide an Id so that means it's not a viable option. Any suggestions on how to get around this if we need the Id?
-- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
