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.  [ 2 posts ] 
Author Message
 Post subject: Table-per-concrete-class : unmapped class
PostPosted: Sat Jan 27, 2007 11:48 am 
Newbie

Joined: Fri Nov 10, 2006 4:42 am
Posts: 6
Hi,

I've a problem with table-per-concrete-class mapping and NHibernate 1.0.3.
I've a IMaterialiContainer interface and a Prodotto and Film classes that derive from the original interface. I've mapped the Prodotto and Film classes (all works when I use mapping for the two concrete classes) but when I try to do a query like this :

from MyApp.IMaterialiContainer as mc where :Materiale in elements(mc.Materiali)

I received this exception :

undefined alias or unknown mapping: Nitrotech [from MyApp.IMaterialiContainer as mc where :Materiale in elements(mc.Materiali)]


I can't understand why...It says to me that the super-class (my IMaterialiContainer interface) si not mapped, but in the sample on the documentation the IPayment interface is not declared in any mapping file....

Thanks!!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 1:15 am 
Senior
Senior

Joined: Mon Aug 21, 2006 9:18 am
Posts: 179
Table per concrete class has limitations in regard to querying...There's a chart in section 9.2. Limitations in the documentation at http://www.hibernate.org/hib_docs/v3/re ... ml_single/ detailing these limitations.
I suspect you are running up against the lack of support for polymorphic joins in this strategy since you are using the 'in elements' clause.
That's my guess...
MIKE

_________________
If this helped...please remember to rate it!


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

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.