Are you saving the child before the parent? On Fri, Feb 6, 2009 at 3:56 PM, brendanjerwin <[email protected]>wrote:
> > Disclaimer: I'm really green with this stuff, so please pardon my > ignorance. Feel free to tell me to RTFM, but at least give me a link > to the relevant sections since I haven't found it yet. > > Problem: NH is INSERTing an entity that is a child of another entity / > before/ inserting the parent. This is resulting in a FK constraint > error. (The database I'm working against is a legacy DB from hell, so > I have to work with what I have. i.e. disabling the constraint isn't > an option...) I realize I've probably told NH something wrong about > the relationships of the parts but I can't find where. Is there a way > I can see what NH thinks is going on so I can find my problem? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
