-->
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: Search returns wrong type
PostPosted: Thu Feb 12, 2015 11:57 am 
Newbie

Joined: Thu Feb 12, 2015 11:51 am
Posts: 1
Hello,

I have a hibernate query like this:
Code:
FullTextQuery fullTextQuery = fullTextEntityManager.createFullTextQuery(booleanQuery, Project.class);

which returns me like supposed a list of variables of the class "Project".
However when I change this search to:
Code:
FullTextQuery fullTextQuery = fullTextEntityManager.createFullTextQuery(booleanQuery, Project.class, AvantProjet.class);

the results which should be of the class are of the (undefined) class "Project_$$_jvst63b_1b", which is a subclass of "Project". The results of "AvantProjet" are however of the type, they are supposted to be.

Can anyone tell me, why the "Project" result are not of that type but of that subtype with the dollars?!

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.