mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-28 07:26:56 +00:00
#606 - Add not() as a junction expression (like and() and or()) to the query criteria API
This commit is contained in:
1 parent
3ddd7099b5
commit
5de67e1939
8 files changed
+291
-204
No files matched your search
@@ -2,6 +2,7 @@ package com.avaje.ebeaninternal.server.expression;
|
||||
|
||||
import com.avaje.ebean.Expr;
|
||||
import com.avaje.ebean.Expression;
|
||||
import com.avaje.ebean.Junction;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.StrictAssertions.assertThat;
|
||||
@@ -23,11 +24,11 @@ public class JunctionExpressionTest {
|
||||
}
|
||||
|
||||
<T> JunctionExpression and(DefaultExpressionList<T> list) {
|
||||
return new JunctionExpression.Conjunction<T>(list);
|
||||
return new JunctionExpression<T>(Junction.Type.AND, list);
|
||||
}
|
||||
|
||||
<T> JunctionExpression or(DefaultExpressionList<T> list) {
|
||||
return new JunctionExpression.Disjunction<T>(list);
|
||||
return new JunctionExpression<T>(Junction.Type.OR, list);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user