mirror of https://github.com/apache/openjpa.git
OPENJPA-1013: IS EMPTY/SIZE() support for criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f029f2de85
commit
9d30d4819e
|
@ -273,7 +273,6 @@ public class TestTypesafeCriteria extends SQLListenerTestCase {
|
||||||
assertEquivalence(q, jpql);
|
assertEquivalence(q, jpql);
|
||||||
}
|
}
|
||||||
|
|
||||||
@AllowFailure
|
|
||||||
public void testRestrictQueryResult2() {
|
public void testRestrictQueryResult2() {
|
||||||
String jpql = "SELECT o FROM Order o WHERE o.lineItems IS EMPTY";
|
String jpql = "SELECT o FROM Order o WHERE o.lineItems IS EMPTY";
|
||||||
CriteriaQuery q = cb.create();
|
CriteriaQuery q = cb.create();
|
||||||
|
@ -339,7 +338,6 @@ public class TestTypesafeCriteria extends SQLListenerTestCase {
|
||||||
assertEquivalence(q, jpql);
|
assertEquivalence(q, jpql);
|
||||||
}
|
}
|
||||||
|
|
||||||
@AllowFailure
|
|
||||||
public void testExpression5() {
|
public void testExpression5() {
|
||||||
String jpql = "SELECT SIZE(d.employees) FROM Department d " +
|
String jpql = "SELECT SIZE(d.employees) FROM Department d " +
|
||||||
"WHERE d.name = 'Sales'";
|
"WHERE d.name = 'Sales'";
|
||||||
|
|
|
@ -83,8 +83,7 @@ public class PathImpl<X> extends ExpressionImpl<X> implements Path<X> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Expression get(AbstractCollection collection) {
|
public Expression get(AbstractCollection collection) {
|
||||||
// TODO Auto-generated method stub
|
return new PathImpl(this, (Members.BaseCollection) collection);
|
||||||
throw new AbstractMethodError();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Expression get(Map collection) {
|
public Expression get(Map collection) {
|
||||||
|
|
Loading…
Reference in New Issue