Exactly what i need too.
Please make it possible to annotate this.
since this works for me if I have fetchtype.eager annotated on the label.history and content.data.
Code:
Criteria criteria = getCriteria();
criteria.setFetchMode("label.history", FetchMode.SELECT);
criteria.setFetchMode("label.meta", FetchMode.SELECT);
criteria.setFetchMode("label.content.data", FetchMode.SELECT);
my problem is that i cant use outer join fetching since history tupels and data tupels must be ordered in a List and must be able to contain duplicates.
the label objects must always be eagerly fetched, with get(), load(), HQL, or criteria or walking the references.
like the manual states:
Quote:
The fetch strategy defined in the mapping document affects:
* retrieval via get() or load()
* retrieval that happens implicitly when an association is navigated
* Criteria queries
* HQL queries if subselect fetching is used