[
https://issues.apache.org/jira/browse/OPENJPA-2733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814475#comment-16814475
]
ASF subversion and git services commented on OPENJPA-2733:
----------------------------------------------------------
Commit f9b59689d45fdc5615da6779ad097173e729616b in openjpa's branch
refs/heads/master from Mark Struberg
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=f9b5968 ]
OPENJPA-2733 OPENJPA-2785 fix broken spring data usage.
spring-data potentially does something unspecified.
This hack now prevents duplicate ParameterExpressions with the same name
while not having to implement equals + hashCode for it - which makes Spring
happy.
> Subquery parameters are incorrectly assigned
> --------------------------------------------
>
> Key: OPENJPA-2733
> URL: https://issues.apache.org/jira/browse/OPENJPA-2733
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 2.4.2
> Reporter: Pawel Veselov
> Assignee: Mark Struberg
> Priority: Major
> Fix For: 3.1.0
>
> Attachments: 1.diff
>
>
> When parameters are used both outside and inside a sub-query, the parameter
> values are overwritten by other parameters.
> I did write up a test case, and provided *a* patch, but this patch has
> problems with replacing where clauses. Once a where clause is replaced, in
> either the root, or a sub query, params have to be cleaned up, but that
> doesn't clear out the _where property, which means they will not be rebuilt.
> But there are no tests that would catch that so far. That probably should be
> an extension of TestEdit#testEditParameterizedPredicateRemoved
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)