mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#715 - isNull() expression on @OneToMany or @ManyToMany produces incorrect SQL - should translate this to be same as isEmpty() and result in exists subquery
This commit is contained in:
1 parent
0510304c0f
commit
a20822a9e1
12 files changed
+171
-55
No files matched your search
@@ -178,6 +178,11 @@ public class ElPropertyChain implements ElPropertyValue {
|
||||
return lastElPropertyValue.getAssocIdInValueExpr(size);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAssocMany() {
|
||||
return lastElPropertyValue.isAssocMany();
|
||||
}
|
||||
|
||||
public boolean isAssocId() {
|
||||
return assocId;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,11 @@ public interface ElPropertyValue extends ElPropertyDeploy, ExpressionPath {
|
||||
*/
|
||||
boolean isAssocId();
|
||||
|
||||
/**
|
||||
* Return true if the property is a OneToMany or ManyToMany associated bean property.
|
||||
*/
|
||||
boolean isAssocMany();
|
||||
|
||||
/**
|
||||
* Return true if any path of this path contains a Associated One or Many.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user