[ https://issues.apache.org/jira/browse/OPENJPA-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Catalina Wei updated OPENJPA-1738:
----------------------------------
Attachment: OPENJPA-1738.patch
> 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
> Attachments: OPENJPA-1738.patch
>
>
> 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.
|