-->
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.  [ 3 posts ] 
Author Message
 Post subject: Empty query sent to database?
PostPosted: Wed Sep 07, 2005 12:33 pm 
Newbie

Joined: Sun Jul 10, 2005 6:30 pm
Posts: 10
Hi, I moved some working code from one project to a new project and now when i try to do something like:

Code:
IQuery q = this.Session.CreateQuery("from Product");
q.List();


NHibernate registers no errors but sends "select from" to the database... nothing else... its not picking up the object name or properties correctly... but no errors are coming from nhibernate (beyond the sql exception)... anyone have any idea what i did wrong?

I checked the namespaces in the config file and they match the namespace of the object... other than that the mapping file is the same...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 07, 2005 12:34 pm 
Newbie

Joined: Sun Jul 10, 2005 6:30 pm
Posts: 10
oh i am using .8.4 in case that matters


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 07, 2005 12:56 pm 
Newbie

Joined: Sun Jul 10, 2005 6:30 pm
Posts: 10
bah. needed to have the config set to Embedded Resource.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.