persistence@glassfish.java.net

Re: Safe DDL generation with injection

From: Klaus Unger <UngerKlaus_at_gmx.de>
Date: Fri, 7 Dec 2007 13:05:39 +0100

Thank you, that really does help.

However regarding "redeploy" - I assume this means "undeploy + deploy".
Is there really no way to do this by asadmin only knowing the enterprise name,
and not knowing a path to ear?

- Klaus

On Thursday 06 December 2007 23:17:07 Marina Vatkina wrote:
> Hi Klaus,
>
> If you use asadmin deploy with --dropandcreatetables it works in GlassFish
> the same way as the "drop-and-create-table" property. I.e. if it's the
> first deploy (vs. a redeploy), no attempt will happen to drop the tables.
>
> However if you need to drop them because e.g. you recreated the domain
> without undeploying the app, just redeploy your app again (without even
> running), and the process will drop the existing tables (as long as they
> match the tables that were supposed to be created on the last deploy).
>
> HTH,
> -marina