mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#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:
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) {
|
||||
|
||||
Reference in new issue
Block a user