[
https://issues.apache.org/jira/browse/OPENJPA-240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Catalina Wei updated OPENJPA-240:
---------------------------------
Attachment: openjpa-240.xmlmapping.patch
This patch is needed for XML Column mapping. It is a workaround until
XMLClassMetaData is refactored.
As Patrick's comment in dev-mailing-lsit::
Re: svn commit: r557437 - in /openjpa/trunk: openjpa-jdbc-
5/src/main/java/org/apache/openjpa-jdbc-5...
There should be a way to integrate XMLClassMetaData into the existing OpenJPA
metadata concepts (similar to how ClassMetaData instances are constructed from
MetaDataFactory instances).
And, the annotation-parsing code in XMLClassMetaData is moved into
openjpa-persistence annotation parser.
So far, I have not got it worked out yet.
In the meantime, to enable XML Column mapping, users could specify in the
persisten.xml the following property:
<property name="openjpa.MetaDataRepository"
value="org.apache.openjpa.jdbc.meta.XMLMappingRepository"/>
But the problem is this persistence.xml can not be used to run Enhancer,
as it will fail with Exception in thread "main" java.lang.NullPointerException
at
org.apache.openjpa.jdbc.meta.ValueMappingImpl.<init>(ValueMappingImpl.java:74)
> Persistent field mappings to database supported XML columns
> -----------------------------------------------------------
>
> Key: OPENJPA-240
> URL: https://issues.apache.org/jira/browse/OPENJPA-240
> Project: OpenJPA
> Issue Type: New Feature
> Components: jdbc
> Reporter: Catalina Wei
> Attachments: jpa1.0.0-xmlmapping.r555694.patch,
> openjpa-240.xmlmapping.patch, openjpa-project.patch, OpenJPAXMLMapping.doc
>
>
> Many database systems such as DB2 version 9, Oracle 10g, and SQLServer 2005
> have support for XML column types. XML documents can be stored natively in
> the XML columns in the database.
> What is OpenJPA's position of supporting the XML columns ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.