Why do you have Bar subclass Foo and also compose a Foo in the parent field?
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jan Limpens Sent: Thursday, October 23, 2008 11:39 AM To: [email protected] Subject: [nhusers] Found shared references to a collection hi guys, i have a class Foo { IList Categories { get; set; } } and class Bar : Foo { public Bar(Foo parent) { this.parent = parent; } IList Categories { get {return parent.Categories;} set {parent.Categories = value; } } } when I try to hibernate this, I get a HibernateException: Found shared references to a collection: Foo.Categories which is true, but intended behavior. Can I somehow map around this? -- Jan ___________________ [EMAIL PROTECTED] www.limpens.com +55 (11) 3082-1087 +55 (11) 3097-8339 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
