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
___________________
j...@limpens.com
www.limpens.com
+55 (11) 3082-1087
+55 (11) 3097-8339
I have Product:Article and SubArticle:Article (among others).
SubArticles are Products that override (datawise) some properties,
like Name, Weight, Price (a SubArticle is essentially the Product in a
different quantity. If the Product comes in 50 units, there might be a
SubArticle that comes with 10 units, or 1).
So actually they do SubArticle does not inherit from Product. The fact
that I pass it a Product as a parent is likely to change soon. Right
now only Product can have SubArticles.