We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0201c3d commit abdab9eCopy full SHA for abdab9e
src/main/java/org/javawebstack/orm/query/QueryGroup.java
@@ -10,6 +10,15 @@
10
import java.util.List;
11
import java.util.function.Function;
12
13
+/**
14
+ * Queries grouped via the QueryGroup class will be put inside parenthesis.
15
+ * This makes expressions as the following possible (MySQL example):
16
+ * ... `column_a` = 'A' OR (`column_b` = 'B' AND `column_c´ = 'C') ...
17
+ *
18
+ * In the above example `column_b` = 'B' AND `column_c´ = 'C' would be in a QueryGroup.
19
20
+ * @param <T> The model under which the QueryGroups functions. Currently purely semantic without functionality.
21
+ */
22
public class QueryGroup<T extends Model> implements QueryElement {
23
24
private final List<QueryElement> queryElements = new ArrayList<>();
0 commit comments