openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fay Wang (JIRA)" <>
Subject [jira] Commented: (OPENJPA-1837) ElementCollection contains Embeddable with blob value fails in Oracle
Date Tue, 19 Oct 2010 16:02:26 GMT


Fay Wang commented on OPENJPA-1837:

The two flags in OracleDictionary:

        maxEmbeddedBlobSize = 4000;
        maxEmbeddedClobSize = 4000;

are intended for applications using pre- 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 The patch for this JIRA is to fix
the exception for applications which still use pre- driver. 

> ElementCollection contains Embeddable with blob value fails in Oracle
> ---------------------------------------------------------------------
>                 Key: OPENJPA-1837
>                 URL:
>             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:
> <openjpa-2.1.0-SNAPSHOT-runknown fatal user error> org.apache.openjpa.persistence.ArgumentException:
org.apache.openjpa.persistence.jdbc.annotations.EmbedValue>" is mapped as embedded, but
embedded field ""
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.

View raw message