Andrus Adamchik commented on CAY-992:
-------------------------------------
Hmm... this works just fine for me... E.g. here is a DataMap saved from 2.0 Modeler:
<?xml version="1.0" encoding="utf-8"?>
<data-map project-version="2.0">
<db-entity name=""x"">
<db-attribute name=""yy""/>
<db-attribute name="'xx'"/>
</db-entity>
<db-entity name="'y'">
</db-entity>
<obj-entity name="_x_" dbEntityName=""x"">
<obj-attribute name="_xx_" db-attribute-path="'xx'"/>
<obj-attribute name="_yy_" db-attribute-path=""yy""/>
</obj-entity>
<obj-entity name="_y_" dbEntityName="'y'">
</obj-entity>
</data-map>
Could you please attach the DataMap file that is causing trouble? Maybe some other XML attributes are not encoded properly. But db-entity name and db-attribute name are most certainly encoded correctly.
> Modeler does not escape entity names
> ------------------------------------
>
> Key: CAY-992
> URL: https://issues.apache.org/cayenne/browse/CAY-992
> Project: Cayenne
> Issue Type: Bug
> Components: CayenneModeler GUI
> Affects Versions: 1.2 [STABLE], 2.0 [STABLE], 3.0
> Environment: Postgres SQL
> Reporter: Rares Ispas
> Assignee: Andrus Adamchik
>
> Postgres SQL requires using commas for case sensitive object names.
> When such a table or column name contains commas, the Modeler saves them unescaped in the .xml file.
> For example:
> <db-entity name=""Users"" schema="...">
> The result is that the xml file is unreadable.
> Using " is also not an option, since the second time the schema xml is read, it will be saved again as " instead of "
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
This archive was generated by hypermail 2.0.0 : Sun Mar 02 2008 - 05:25:26 EST