- 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?