Rick Curtis wrote:
>
> Try removing the default fetchgroup?
>
Hi Rick, thank you for your input!
I did the following:
final OpenJPAQuery ojpaQuery =
OpenJPAPersistence.cast(em.createNamedQuery(StammdatenQueryNames.FIND_ALL_BP.name()));
ojpaQuery.getFetchPlan().removeFetchGroup(FetchGroup.NAME_DEFAULT);
ojpaQuery.getFetchPlan().addFetchGroup("short");
final List<Bp> result = ojpaQuery.getResultList();
All fields and all relationships are loaded. Another idea?
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Best-practice-Using-fetch-groups-or-a-simple-DTO-tp6598057p6621633.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.