-->
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: Problem querying after upgrade to latest version
PostPosted: Tue Sep 20, 2005 9:17 pm 
Beginner
Beginner

Joined: Mon Sep 26, 2005 5:57 pm
Posts: 39
I was using Nhibernate version 0.8 with the following code working correctly:

IList lst = Session.CreateCriteria(typeof(claimreview))
.Add(Expression.Eq("project", prj))
.List();


After upgrading to the latest version, I get this error:
cannot use association or collection (CID.IPath.NewBusinessLayer.claimreview.project) directly in a criterion, use ICriteria.CreateCriteria instead


I am unable to understand this error. What is the problem in the above code?


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.