[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Dynamic fetch plan with navigations

Is it possible to declare a query such that fields of associated objects are guaranteed to be loaded?

Lets say you have: Catalog <-->n Article <-->n Description
You query for Catalog and want to have certain fields from Article and Description to be fetched as well.


I am aware of JPA fetch joins. However, due to a subtle omission in the JPA query grammar, those fetch joins cannot be cascaded.

I also had a look at chapter "Using Queries with Fetch Groups" in the EclipseLink documentation[1], but I cannot figure out how to specify object-navigations here.

Kindly appreciate your help,
Frank


[1] http://wiki.eclipse.org/Using_Advanced_Query_API_(ELUG)#How_to_Query_with_a_Dynamic_Fetch_Group