persistence@glassfish.java.net

Re: How to delete all tables in a database

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Mon, 29 Oct 2007 13:39:49 -0700

Are you looking for a standard way to do it or an internal solution? If it's the
latter, there is an isql utility under <gf-src>/appserv-tests/lib/isql.jar that
can be used to drop all the tables (in the databases that it can work with).
Look for an ant-based use in the build.xml under <gf-src>/entity-persistence-tests.

HTH,
-marina

Farrukh Najmi wrote:
>
> What is the best way for my JPA client to delete all tables in a
> database? TIA.
>