-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Multple proxies for a subclass?
PostPosted: Thu Jan 10, 2008 4:49 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.