mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-11 02:21:07 +00:00
#566 - Refactor internals -OrmQueryDetailProperties - remove hasProperties()
This commit is contained in:
1 parent
3d3948aa8b
commit
439858b259
3 files changed
+25
-7
No files matched your search
@@ -444,7 +444,7 @@ public class OrmQueryDetail implements Serializable {
|
||||
* Return true if the query detail has neither select properties specified or any joins defined.
|
||||
*/
|
||||
public boolean isEmpty() {
|
||||
return fetchPaths.isEmpty() && (!baseProps.hasProperties());
|
||||
return fetchPaths.isEmpty() && baseProps.allProperties();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -318,13 +318,8 @@ public class OrmQueryProperties implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if this has properties. Returning false means this part of the
|
||||
* path is a partial object.
|
||||
* Return true if this includes all properties on the path.
|
||||
*/
|
||||
public boolean hasProperties() {
|
||||
return included != null;
|
||||
}
|
||||
|
||||
public boolean allProperties() {
|
||||
return included == null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user