From dev-return-16919-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Wed Jul 21 18:54:15 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 30779 invoked from network); 21 Jul 2010 18:54:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jul 2010 18:54:15 -0000 Received: (qmail 79134 invoked by uid 500); 21 Jul 2010 18:54:15 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 79085 invoked by uid 500); 21 Jul 2010 18:54:14 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 79077 invoked by uid 99); 21 Jul 2010 18:54:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 18:54:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 18:54:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6LIroUr017235 for ; Wed, 21 Jul 2010 18:53:50 GMT Message-ID: <10473841.501351279738430383.JavaMail.jira@thor> Date: Wed, 21 Jul 2010 14:53:50 -0400 (EDT) From: "Catalina Wei (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-1738) Prepared SQL query does not handle collection-valued parameter of persistence-capable objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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.