I have tried to get source running as explained in http://eclipse.org/eclipselink/documentation/2.4/jpa/extensions/a_fetchgroup.htm
@FetchGroup(name="names",
attributes={
@FetchAttribute(name="firstName"),
@FetchAttribute(name="lastName")
})
TypedQuery query = em.createQuery("SELECT e FROM Employee e", Employee.class);
query.setHint(QueryHints.FETCH_GROUP_NAME, "names");
Sadly it ends up with "Needs to implement FetchGroupTracker".
I don't know if it is really the case or I'm missing something. Does anybody know where I can find a sample for it?