Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 5482 invoked from network); 19 Oct 2010 16:02:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Oct 2010 16:02:48 -0000 Received: (qmail 63863 invoked by uid 500); 19 Oct 2010 16:02:48 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 63826 invoked by uid 500); 19 Oct 2010 16:02:47 -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 63810 invoked by uid 99); 19 Oct 2010 16:02:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Oct 2010 16:02:47 +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; Tue, 19 Oct 2010 16:02:47 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9JG2QoS003009 for ; Tue, 19 Oct 2010 16:02:26 GMT Message-ID: <32189137.49031287504146481.JavaMail.jira@thor> Date: Tue, 19 Oct 2010 12:02:26 -0400 (EDT) From: "Fay Wang (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-1837) ElementCollection contains Embeddable with blob value fails in Oracle In-Reply-To: <16268988.171271287181113541.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922602#action_12922602 ] Fay Wang commented on OPENJPA-1837: ----------------------------------- The two flags in OracleDictionary: maxEmbeddedBlobSize = 4000; maxEmbeddedClobSize = 4000; are intended for applications using pre-11.2.0.1 jdbc driver. When these flags are set, MaxEmbeddedLobFieldStrategy will be used as for any Lob fields. The Lob field can appear in an Embeddable, which may be an element in the ElementCollection. It can also be a field in an entity. The above exception is thrown when the Lob field is in an Embeddable and the embeddable is an element of an ElementCollection. The limitation of 4000 is fixed in jdbc driver 11.2.0.1. The patch for this JIRA is to fix the exception for applications which still use pre-11.2.0.1 driver. > ElementCollection contains Embeddable with blob value fails in Oracle > --------------------------------------------------------------------- > > Key: OPENJPA-1837 > URL: https://issues.apache.org/jira/browse/OPENJPA-1837 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 2.0.1 > Reporter: Fay Wang > Assignee: Fay Wang > Fix For: 2.0.1 > > Attachments: Openjpa-1837-1.patch, OPENJPA-1837.patch > > > An element collection which contains Embeddable with Lob field fails with Oracle: > org.apache.openjpa.persistence.ArgumentException: "org.apache.openjpa.persistence.jdbc.annotations.EmbedOwner.embedCollection" is mapped as embedded, but embedded field "org.apache.openjpa.persistence.jdbc.annotations.EmbedOwner.embedCollection.org.apache.openjpa.persistence.jdbc.annotations.EmbedValue.blob" is not embeddable. Embedded element/key/value types are limited to simple fields and direct relations to other persistent types. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.