help! how to drop table by coding?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

help! how to drop table by coding?

zhourui
i find some sample in openjpa source code like:

        MappingTool tool = new MappingTool(conf, "drop", false);
        SchemaTool schemaTool = new SchemaTool(conf, "drop");
        schemaTool.setSchemaGroup(tool.getSchemaGroup());
        schemaTool.run();

org.apache.openjpa.persistence.jdbc.schema.TestSchemaGenerationProperties.java

but it is not work!

how can i drop table programmatically.



--
Sent from: http://openjpa.208410.n2.nabble.com/OpenJPA-Users-f208411.html