Have you tried LiquiBase (http://www.liquibase.org/)? It includes a ServletListener that allows you to update your database before you webapp fires up.
I've only used it on a single project so far, but I'm pretty happy with it. regards, Onno On Sun, Nov 7, 2010 at 9:45 AM, Paul Stanton <p...@mapshed.com.au> wrote: > Hi, > > I'm using tapestry-hibernate and hibernate is configured partly by > hibernate.cfg.xml and some properties supplied in > AppModule.contributeHibernateSessionSource. > > I need to apply database upgrades before hibernate has a chance to validate > mapped entities. > > Since I have access to the configuration properties for the database and > hibernate has not yet initialised in > AppModule.contributeHibernateSessionSource it seems this would be a > reasonable place to apply my upgrades via straight JDBC. > > Does this sound like a good approach or has someone done something similar > in a smarter way? > > regards, paul. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >