persistence@glassfish.java.net

RE: Altering tables

From: John Rice <Jrice_at_appriss.com>
Date: Tue, 8 Apr 2008 05:59:37 -0400

Can someone tell me how to unsubscribe this list? I have tried the normal way to no avail.

Thanks - John
________________________________________
From: Marina.Vatkina_at_Sun.COM [Marina.Vatkina_at_Sun.COM]
Sent: Monday, April 07, 2008 7:36 PM
To: persistence_at_glassfish.dev.java.net
Subject: Re: Altering tables

Hi Kiril,

There is no JPA-defined way to do it.

TopLink Essentials can only drop and create tables, while OpenJPA by default
only adds/removes columns if the table already exist. Either way you request
this feature in a provider-specific way or through the tools.

Regards,
-marina

Kiril Minanov wrote:
> Hi
>
> I was wondering if you can tell me how to alter a table
> add/remove columns using JPA, not native queries
>
> Without recreating the tables
>
> Thank you