-->
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 use of entityname with createFullTextQuery
PostPosted: Thu Jun 25, 2009 4:37 am 
Newbie

Joined: Wed Jun 24, 2009 12:19 pm
Posts: 2
Hi,

I use Lucene for my search engine.

I have the following error "Unable to load entity class from criteria : normalFolder" when I use this source code :

Code:
Criteria criteria = fullTextSession.createCriteria("normalFolder");
List result = fullTextSession.createFullTextQuery(query). setCriteriaQuery(criteria).list ();


I don't want to suse this one
Code:
fullTextSession.createFullTextQuery(query, Folder.class);


Because this result to much entity Folder ->ParentFolder -> ParentFolder -> ect

The error is on setCriteria and not on createCriteria. I have already use createCriteria ("normalFolder") in other function and this without any problems.

Any Idea?

Thanks


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.