[
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:
> <openjpa-2.1.0-SNAPSHOT-runknown fatal user error>
> org.apache.openjpa.persistence.ArgumentException:
> "org.apache.openjpa.persistence.jdbc.annotations.EmbedOwner.embedCollection<element:class
> org.apache.openjpa.persistence.jdbc.annotations.EmbedValue>" 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.