users@glassfish.java.net

Re: Enterprise Application Preserve Data on Entity Changes

From: Paul <paul_at_nosphere.org>
Date: Thu, 19 Mar 2009 14:49:20 +0100

You can use Liquibase for example : http://www.liquibase.org/



Le jeudi 19 mars 2009 12:00:37, glassfish_at_javadesktop.org a écrit :
> Hello All,
>
> I have a application, which using Persistence (EJB 3.0 implementation). on
> Glassfish. If there are any entity changes (hence change in database
> schema), all the existing tables (w.r.t. entitities) are dropped and new
> tables are created. This result in the loss of Data existing in the Tables.
> Please guide me how to handle this scenario, what are the best practices
> for migration which involved Entity Changes. I dont want to loose the data,
> when I build a new version of application with entity changes.
>
> Thanks in advance.
>
> Regards
> Suyog
> [Message sent by forum member 'suyogbarve' (suyogbarve)]
>
> http://forums.java.net/jive/thread.jspa?messageID=337904
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net