#1460 - ENH: Add FetchGroup ... as a mechanism to specify select() + fetch() separately from Query

Change to add generics for FetchGroup
This commit is contained in:
rob bygrave committed 2018-08-02 23:18:44 +12:00
1 parent ec7e4e4935
commit 6d0556a120
11 files changed
+81 -63

No files matched your search

@@ -11,13 +11,13 @@ import io.ebeaninternal.server.querydefn.OrmQueryDetail;
public final class DFetchGroupService implements SpiFetchGroupService {
@Override
public FetchGroup of(String select) {
return new DFetchGroup(detail(select));
public <T> FetchGroup<T> of(Class<T> cls, String select) {
return new DFetchGroup<>(detail(select));
}
@Override
public FetchGroupBuilder select(String select) {
return new DFetchGroupBuilder(detail(select));
public <T> FetchGroupBuilder<T> of(Class<T> cls) {
return new DFetchGroupBuilder<>();
}
private OrmQueryDetail detail(String select) {