mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1607 - ENH: Add query.exists() query ... as a convenience for "does a row exist" check
This commit is contained in:
1 parent
ab3e6ccbf7
commit
8a34d6050b
10 files changed
+145
-8
No files matched your search
@@ -1398,6 +1398,11 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
|
||||
return server.findIds(this, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean exists() {
|
||||
return server.exists(this, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int findCount() {
|
||||
// a copy of this query is made in the server
|
||||
|
||||
Reference in new issue
Block a user