Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit 111fd49

Browse files
committed
#64 - ENH: Add support for building FetchGroup via query beans
1 parent 5c88a4c commit 111fd49

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/io/ebean/typequery/TQRootBean.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import io.ebean.search.TextCommonTerms;
2424
import io.ebean.search.TextQueryString;
2525
import io.ebean.search.TextSimple;
26+
import io.ebean.service.SpiFetchGroupQuery;
2627
import io.ebean.text.PathProperties;
2728
import io.ebeaninternal.server.util.ArrayStack;
2829

@@ -152,6 +153,13 @@ public TQRootBean(boolean aliasDummy) {
152153
this.query = null;
153154
}
154155

156+
/**
157+
* Return the fetch group.
158+
*/
159+
public FetchGroup<T> buildFetchGroup() {
160+
return ((SpiFetchGroupQuery)query()).buildFetchGroup();
161+
}
162+
155163
/**
156164
* Sets the root query bean instance. Used to provide fluid query construction.
157165
*/

0 commit comments

Comments
 (0)