When I import the tables from a database in my cdbimport ANT task i have
"Overwrite=true" but if i run a second and third time that task each time in
my map.xml file it will add a new obj-entity ex :
Is anyone who know how to solve this problem ?? thank you!
<?xml version="1.0" encoding="utf-8"?>
<data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap
http://cayenne.apache.org/schema/3.0/modelMap.xsd"
project-version="3.0.0.1">
<property name="defaultPackage" value="persistent.oracle_X"/>
<property name="defaultSchema" value="XE"/>
<db-entity name="ROOC" schema="ROOT">
<db-attribute name="ID" type="INTEGER" length="2"/>
<db-attribute name="NR" type="INTEGER" length="2"/>
<db-attribute name="NUME" type="VARCHAR" length="40"/>
<db-attribute name="PRE" type="VARCHAR" length="40"/>
</db-entity>
<obj-entity name="Rooc" className="persistent.oracle_X.Rooc">
<obj-attribute name="id" type="java.lang.Integer"/>
<obj-attribute name="nr" type="java.lang.Integer"/>
<obj-attribute name="nume" type="java.lang.String"/>
<obj-attribute name="pre" type="java.lang.String"/>
</obj-entity>
<obj-entity name="Rooc1" className="persistent.oracle_X.Rooc1">
<obj-attribute name="id" type="java.lang.Integer"/>
<obj-attribute name="nr" type="java.lang.Integer"/>
<obj-attribute name="nume" type="java.lang.String"/>
<obj-attribute name="pre" type="java.lang.String"/>
</obj-entity>
<obj-entity name="Rooc2" className="persistent.oracle_X.Rooc2">
<obj-attribute name="id" type="java.lang.Integer"/>
<obj-attribute name="nr" type="java.lang.Integer"/>
<obj-attribute name="nume" type="java.lang.String"/>
<obj-attribute name="pre" type="java.lang.String"/>
</obj-entity>
<obj-entity name="Rooc3" className="persistent.oracle_X.Rooc3">
<obj-attribute name="id" type="java.lang.Integer"/>
<obj-attribute name="nr" type="java.lang.Integer"/>
<obj-attribute name="nume" type="java.lang.String"/>
<obj-attribute name="pre" type="java.lang.String"/>
</obj-entity>
<obj-entity name="Rooc4" className="persistent.oracle_X.Rooc4"
dbEntityName="ROOC">
<obj-attribute name="id" type="java.lang.Integer" db-attribute-path="ID"/>
<obj-attribute name="nr" type="java.lang.Integer" db-attribute-path="NR"/>
<obj-attribute name="nume" type="java.lang.String"
db-attribute-path="NUME"/>
<obj-attribute name="pre" type="java.lang.String"
db-attribute-path="PRE"/>
</obj-entity>
</data-map>
-- View this message in context: http://cayenne.195.n3.nabble.com/overwrite-true-issue-tp1893615p1893615.html Sent from the Cayenne - User mailing list archive at Nabble.com.
This archive was generated by hypermail 2.0.0 : Sat Nov 13 2010 - 09:27:43 UTC