-->
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: HQL works
PostPosted: Wed Sep 22, 2010 7:42 am 
Newbie

Joined: Tue Sep 21, 2010 12:43 pm
Posts: 6
- SORRY, this post shall be related to another topic -

I still have no idea how to solve this problem. I tried the same query in HQL, and this is working:

Code:
from PropertyValueEntity where propertyValuePK.propertyNameEntity.name like 'GSM'



But no progress with the Criteria query. I've already tried setFetchMode and createAlias, but nothings working.

I've set the "show_sql" property to true, which shows, that the following SQL is produced from the Criteria Query:

Code:
Hibernate: /* criteria query */ select this_.artikelId as artikelId8_0_, this_.eigenschaftsNameId as eigensch3_8_0_, this_.eigenschaftsWert as eigensch2_8_0_ from haym_info.eigenschaftswert this_ where propertyna2_.name=?


Why the Criteria query does not result in a Join?


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.