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

Commit

Permalink
#31 Add support for isNull() and isNotNull() on ManyToOne associated …
Browse files Browse the repository at this point in the history
…properties
  • Loading branch information
rbygrave committed Aug 24, 2016
1 parent 26562ba commit 0f71dba
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/org/avaje/ebean/typequery/TQAssocBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,19 @@ public R isNotEmpty() {
return _root;
}

/**
* Is null for a property.
*/
public R isNull() {
expr().isNull(_name);
return _root;
}

/**
* Is not null for a property.
*/
public R isNotNull() {
expr().isNotNull(_name);
return _root;
}
}

0 comments on commit 0f71dba

Please sign in to comment.