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: Possible Bug with implicit criteria joins + inheritance
PostPosted: Wed Feb 13, 2008 9:43 am 
Beginner
Beginner

Joined: Mon Jul 30, 2007 4:58 pm
Posts: 21
Hello I am using NH 1.2.1 and AFAIK implicit joins via expressions is allowed on NH 1.2.0+
such as :


session.CreateCriteria(typeof(User))
.Add( Expression.Eq("Address.City", "Bangkok") );

As long as the relation between User and Address is many-to-one or one-to-one.

So my problem only occurs if User class inherits another class such as a typical BaseObject.

In that case it cannot resolve Address then I am falling back to CreateAlias type of join.

It smells like an NHibernate bug to me? Can anyone confirm ?


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.