Hi,
I've already searched the documentation and this forum but didn't find any information. Can anybody tell me, if it's possible to fetch a collection of value objects with native SQL?
I've already tried the following, but withou success (NPE):
Code:
SQLQuery query = getSession().createSQLQuery(articleQuery.toString());
query.addEntity("article",Article.class);
query.addJoin("articleimages","article.articleImages");
Is this possible at all?
Greetings
Joerg
Hibernate version: 3.2 Mapping documents:
Code:
<class name="Article" table="ARTICLE" >
...
<set name="articleImages" table="ARTIMG" >
<cache usage="read-only"/>
<key column="001" />
<element column="002"
type="trimmedString">
</element>
</set>