Ok, thank you. I used this documentation, and may be it will be interesting to you: http://openjpa.apache.org/builds/1.0.2/apache-openjpa-1.0.2/docs/manual/ref_guide_mapping.html#ref_guide_mapping_mappingtool
2012/4/13 Maxim Solodovnik <[email protected]> > I'll try to read documentation regarding this task later today, never use > it before > On Apr 13, 2012 3:02 PM, "Dmitry Zamula" <[email protected]> wrote: > > > Yes, but now in ${dist.persistence.dir} I already have a persistence.xml. > > And MappingToolTask does not see it. > > > > 2012/4/13 Maxim Solodovnik <[email protected]> > > > > > Persistence.xml is copied to its location by one of the ant tasks. You > > need > > > to add dependency to this task (have no sources right now, can tell > exact > > > task name later today) > > > On Apr 13, 2012 2:23 PM, "Dmitry Zamula" <[email protected]> > > wrote: > > > > > > > Hello! > > > > > > > > I want to fix bug - after a few builds of the system, there is a > > > > duplicate information in database(in particular, this affects the > > > interface > > > > - double buttons, menus, etc.). I wrote new target in build.xml: > > > > > > > > <target name="refresh"> > > > > <taskdef name="tablerefresh" > > > > classname="org.apache.openjpa.jdbc.ant.MappingToolTask"> > > > > <classpath refid="jpa.enhancement.classpath" /> > > > > </taskdef> > > > > <tablerefresh schemaAction="refresh"> > > > > <config propertiesFile="${dist.persistence.dir}/persistence.xml" > > /> > > > > </tablerefresh> > > > > <echo message="Table refreshing complete." /> > > > > </target> > > > > > > > > But, MappingToolTask cant find persistence.xml (Error: A connection > > could > > > > not be obtained for driver class > > > "org.apache.commons.dbcp.BasicDataSource" > > > > and URL "null"). > > > > Does anyone have any ideas why this is happening? > > > > > > > > > > > > > > > -- > > _________________________________________________________ > > > > С уважением, > > > > Замула Дмитрий > > > -- _________________________________________________________ С уважением, Замула Дмитрий
