use of org.eclipse.persistence.queries.FetchGroup in project cuba by cuba-platform.
the class EclipseLinkDescriptorEventListener method postRefresh.
@Override
public void postRefresh(DescriptorEvent event) {
if (event.getObject() instanceof FetchGroupTracker) {
FetchGroupTracker entity = (FetchGroupTracker) event.getObject();
FetchGroup fetchGroup = entity._persistence_getFetchGroup();
if (fetchGroup != null && !(fetchGroup instanceof CubaEntityFetchGroup))
entity._persistence_setFetchGroup(new CubaEntityFetchGroup(fetchGroup));
}
}
Aggregations