mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1792 - ENH: Support using Query beans for building FetchGroup (in a type safe manor)
This commit is contained in:
@@ -2,6 +2,7 @@ package io.ebeaninternal.server.query;
|
||||
|
||||
import io.ebean.FetchGroup;
|
||||
import io.ebean.FetchGroupBuilder;
|
||||
import io.ebean.service.SpiFetchGroupQuery;
|
||||
import io.ebean.service.SpiFetchGroupService;
|
||||
import io.ebeaninternal.server.querydefn.OrmQueryDetail;
|
||||
|
||||
@@ -20,6 +21,11 @@ public final class DFetchGroupService implements SpiFetchGroupService {
|
||||
return new DFetchGroupBuilder<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> SpiFetchGroupQuery<T> queryFor(Class<T> beanType) {
|
||||
return new DefaultFetchGroupQuery<>();
|
||||
}
|
||||
|
||||
private OrmQueryDetail detail(String select) {
|
||||
OrmQueryDetail detail = new OrmQueryDetail();
|
||||
detail.select(select);
|
||||
|
||||
Reference in New Issue
Block a user