openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catalina Wei (JIRA)" <>
Subject [jira] Updated: (OPENJPA-240) Persistent field mappings to database supported XML columns
Date Fri, 27 Jul 2007 20:51:52 GMT


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

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"

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>(

> Persistent field mappings to database supported XML columns
> -----------------------------------------------------------
>                 Key: OPENJPA-240
>                 URL:
>             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.

View raw message