Joined: Tue Feb 20, 2007 11:36 pm Posts: 8 Location: Austin TX, USA
|
I have an intresteing challange in front of me..
I have a subclass that needs multiple proxies, is this possible?
Example model
[Car]
[Truck : Car]
[Tractor : Truck]
Now In [Car]I have a collection called "SimilarCars" of type [Car], and in [Tractor] I have a collection called CompetitiveTrucks of type [Truck].
So how can I place a given [Tractor] in both collections and keep the two collections lazy loading?
If I proxy the [Tractor] as a [Truck] then Nhibernate complains that it doesn't have a proxy for [Car] and if I proxy the [Tractor] as a [Car] NHibernate complains it doesn't have a proxy of [Truck].
I am doing all of my modeling as <subclass> if that helps at all.
Now this is a very bad example, the actual use case is a fairly complex and organic KM system..
Thanks in advance
Josh
_________________ Josh Handel
|
|