-->
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: Probleme utilisation EntityName avec createFullTextQuery
PostPosted: Wed Jun 24, 2009 12:34 pm 
Newbie

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

J'utilise Lucene pour mon moteur de recherche.

J'ai l'erreur "Unable to load entity class from criteria : normalFolder" en utilisant le code suivant :

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


je ne veux pas utiliser
Code:
fullTextSession.createFullTextQuery(query, Folder.class);
car j'ai appliqué des contraintes a l'entityName "normalFolder" afin de réduire de le nombre de sous élément téléchargé.

L'erreur est sur le setCriteria et non sur le createCriteria. J'ai déja utiliser le createCriteria ("normalFolder") dans d'autre fonction sans aucun souci.

Une ou des idées?

Merci d'avance.


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.