openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (OPENJPA-1039) Dynamic query predicates must not treat AND OR operators as associative
Date Fri, 08 May 2009 00:10:45 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pinaki Poddar resolved OPENJPA-1039.
------------------------------------

    Resolution: Fixed

> Dynamic query predicates must not treat AND OR operators as associative
> -----------------------------------------------------------------------
>
>                 Key: OPENJPA-1039
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1039
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: query
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>             Fix For: 2.0.0-M1
>
>
> 		Predicate p1 = e.get("salary").greaterThan(100);
> 		Predicate p2 = e.get("rating").equal(5);
> 		Predicate p3 = e.get("name").like("John");
> 		Predicate w1 = p1.and(p2.or(p3));
> 		Predicate w2 = (p1.and(p2)).or(p3);
> w1 and w2 are not the same.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message