Skip to content

Commit efbe874

Browse files
authored
Add alias for whereNull / whereNotNull
1 parent fedf906 commit efbe874

File tree

1 file changed

+8
-0
lines changed
  • src/main/java/org/javawebstack/orm/query

1 file changed

+8
-0
lines changed

src/main/java/org/javawebstack/orm/query/Query.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,14 @@ public Query<T> notNull(Object left) {
164164
where.notNull(left);
165165
return this;
166166
}
167+
168+
public Query<T> whereNull(Object left) {
169+
return where.isNull(left);
170+
}
171+
172+
public Query<T> whereNotNull(Object left) {
173+
return where.notNull(left);
174+
}
167175

168176
public Query<T> lessThan(Object left, Object right) {
169177
where.lessThan(left, right);

0 commit comments

Comments
 (0)