-->
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.  [ 6 posts ] 
Author Message
 Post subject: no persistent class for query
PostPosted: Wed Nov 29, 2006 4:02 am 
Newbie

Joined: Wed Nov 29, 2006 3:43 am
Posts: 4
What does this warn mean?

WARN [net.sf.hibernate.hql.QueryTranslator] - no persistent classes found for query class: select from StandardItems in class com.hksm.ecrs.objects.StandardItems


Since the return query contain no record , but the table contains record!

Any solution to this warn?????

THX!!!!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 4:21 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Hi,

this usually means that you persistent class is not mapped.
You probably forgot to include the mapping in hibernate.cfg.xml

bst

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 4:26 am 
Newbie

Joined: Wed Nov 29, 2006 3:43 am
Posts: 4
I have included those mapping in hibernate.cfg.xml

but still have same warn!!!


Any other place are missing????


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 4:34 am 
Newbie

Joined: Wed Nov 29, 2006 3:43 am
Posts: 4
I use the Hibernate Synchronizer to generate the persistent class.
For the previous persistent class, there is no problem for query.
But Add a new class, it gives out the " no persistent class for the query " warn and the result set is empty.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 7:41 am 
Senior
Senior

Joined: Mon Oct 23, 2006 5:12 am
Posts: 141
Location: Galicia, Spain
Post mapping files, POJOs and hibernate configuration...

_________________
andresgr (--don't forget to rate)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 9:17 pm 
Newbie

Joined: Wed Nov 29, 2006 3:43 am
Posts: 4
The problem has solved.
I miss fill the mapping in MySessionFactory bean .
Thank for reminding to check the mapping!!!!


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