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:
Fay Wang 2009-05-14 22:52:03 +00:00
parent f029f2de85
commit 9d30d4819e
2 changed files with 1 additions and 4 deletions

View File

@ -273,7 +273,6 @@ public class TestTypesafeCriteria extends SQLListenerTestCase {
assertEquivalence(q, jpql);
}
@AllowFailure
public void testRestrictQueryResult2() {
String jpql = "SELECT o FROM Order o WHERE o.lineItems IS EMPTY";
CriteriaQuery q = cb.create();
@ -339,7 +338,6 @@ public class TestTypesafeCriteria extends SQLListenerTestCase {
assertEquivalence(q, jpql);
}
@AllowFailure
public void testExpression5() {
String jpql = "SELECT SIZE(d.employees) FROM Department d " +
"WHERE d.name = 'Sales'";

View File

@ -83,8 +83,7 @@ public class PathImpl<X> extends ExpressionImpl<X> implements Path<X> {
}
public Expression get(AbstractCollection collection) {
// TODO Auto-generated method stub
throw new AbstractMethodError();
return new PathImpl(this, (Members.BaseCollection) collection);
}
public Expression get(Map collection) {