Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

XMLSchemaSerializer outputs double quotes

Laird Nelson

2010-02-24


Author LoginPost Reply
I'm in the process of upgrading my OpenJPA-based tools from OpenJPA 1.2.2 to
2.0. It is extremely painful and full of all sorts of backwards
incompatibilities.

Once I have rebuilt my code to account for the API changes (mostly in the
area of DBIdentifiers), I now find that schemas are being serialized with
double quotes.

That is, if I hook a SchemaGenerator up to my database, and then use an
XMLSchemaSerializer to process its SchemaGroup, the XML schemas that are
output now contain things like this:

<schemas>
  <schema name="informix">
    <table name="WEBTRANS_TABLE">
       <column name="&quot;twebtrans&quot;" type="char" not-null="true"
default="" size="8"/>


...where previously they contained:

<schemas>
  <schema name="informix">
    <table name="webtrans_table">
       <column name="twebtrans" type="char" not-null="true" default=""
size="8"/>

Consequently, any reverse mapping that takes place off of these schemas
blows up.

Where should I start looking to track down this problem (and file another
bug report)?

Thanks,
Laird
©2008 gg3721.com - Jax Systems, LLC, U.S.A.