openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldo Mendoza" <>
Subject MappingTool help
Date Wed, 28 Mar 2007 13:40:30 GMT
Hello there!
I am trying to use MappingTool with a JDO file named package.jdo to generate the package-mysql.orm
and create the tables in my database, the orm file is created succesfully with one exception,
the table name is not what i expected with subsequent call to the MappingTool.
For example this is what i want no matter how many times i call the MappingTool
<class name="" itentity-type="datastore">
  <field name="field1"/>
the package-mysql.orm file i want is as follow:
<class name="" table="BAR"
  <datastore-identity column="ID"/>
  <field name="field1" column="FIELD1"/>
But if the table already exists in the database, the table name will be followed with a sequential
number, if it´s the second time the MappingTool it´s called the table name will be "BAR1",
if it´s the third time will be "BAR2" and so on..
I tried some MappingTool parameter combinations, like:
-p -dt true -a refresh package.jdo
-p -rs true -a add package.jdo
-p package.jdo
But i can´t mantain the table as the same name of the class, no matter the table already
exists in the database, maybe adding the attribute 'table' each class in package.jdo will
be ok, but i have to many classes to modify.
I hope you can help, Thanks

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message