openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catalina Wei (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1738) Prepared SQL query does not handle collection-valued parameter of persistence-capable objects
Date Wed, 21 Jul 2010 18:53:50 GMT
Prepared SQL query does not handle collection-valued parameter of persistence-capable  objects
----------------------------------------------------------------------------------------------

                 Key: OPENJPA-1738
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1738
             Project: OpenJPA
          Issue Type: Bug
          Components: performance
    Affects Versions: 2.0.0, 2.0.1, 2.1.0
            Reporter: Catalina Wei
            Assignee: Catalina Wei


Patrick Linskey wrote:
I just ran into what I believe is a bug with the prepared SQL code. In PreparedQueryImpl.reparameterize(),
we have the following code:

>             if (ImplHelper.isManageable(val)) {
>                 setPersistenceCapableParameter(result, val, indices, broker);
>             } else if (val instanceof Collection) {
>                 setCollectionValuedParameter(result, (Collection)val, indices,
>                     key);
>             }

This does not work if the parameter is a collection of persistence-capable objects, as setCollectionValuedParameter
assumes that the values are not PCs.



-- 
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