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: Unknown entity class: xxxx.xxxxx error
PostPosted: Tue Oct 03, 2006 9:45 pm 
Newbie

Joined: Tue Oct 03, 2006 9:10 pm
Posts: 1
Location: Sydney
Hibernate version:1.0.2

Name and version of the database you are using: SQL 2005



Hi I have a ASP.NET 2005 Web application that calls an external library. Inside the web application I am trying to return a single record using the criteria object.

_LOG.Country = (TblLookupCountryList)Sess.CreateCriteria(typeof(TblLookupCountryList)).Add(Expression.Eq("Id",value)).UniqueResult();


The above returns a null value but if I use the LOAD method it comes up with
the following error:
Unknown entity class: Dating.TblLookupCountryList.

The external class/dll has the hbm.xml files embeded and this a valid connection to the database.

Please can someone tell me where I am going wrong.

Many thanks

Paul.


Top
 Profile  
 
 Post subject: Re: Unknown entity class: xxxx.xxxxx error
PostPosted: Wed Oct 04, 2006 5:58 am 
Beginner
Beginner

Joined: Wed Aug 03, 2005 8:06 am
Posts: 40
Location: Netherlands
pphillips wrote:
The above returns a null value

I assume that the null value was not exptected?

Criteria is less critical on input parameters than Session.Load. The first will just return null when the type is not found. The latter will try to find a persister for the requested type and when this fails the exception you mention is thrown. So this really looks like a mapping problem. Maybe forgotten a rebuild? (sorry for asking).


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.