Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8352723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:02:55+00:00 2026-06-09T09:02:55+00:00

I am building a webapplication that uses hibernate and mysql and tomcat. Am constantly

  • 0

I am building a webapplication that uses hibernate and mysql and tomcat. Am constantly being asked for new features as the product evolves, and this often means that the data model needs to be changed.

What I am doing now is exporting all the critical data of the database to a flat file. Shutting down the database and the server, reconfiguring the database to match the new hibernate mappings and mysql tables and columns, importing the saved data programatically to fit the new data model, and then restarting the servers.

What else is recommended?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:02:57+00:00Added an answer on June 9, 2026 at 9:02 am

    If you are interested in zero down time deployments then there are lots of ways to approach this. I found this blog post that outlines different strategies to achieve this.

    The basic gist is that you do the database upgrade at a separate time to the main applications and ensure that the database has nullable columns and that the code can adjust to having columns mysteriously appear or disappear.

    The author gives some strategies for doing this for different technologies – but then admits that it’s a bit fiddly to do this with hibernate:

    Hibernate – can be a bit of a bugger in getting it to behave,
    especially if columns are removed. You usually wind up creating common
    interfaces for persistent classes, with multiple versions of
    implementing classes. You can decide which set of classes to wire into
    Hibernate by using schema or result set metadata before initialising
    the SessionFactory. Worse issues exist for other persistence
    technologies in Java, especially the many flavours of JPA that like to
    instrument the bytecode of classes at startup.

    It’s a great and interesting article and I recommend reading it all.

    (Facebook and Yahoo don’t use Hibernate!)

    To give the appearance of zero downtime from a users perspective, then it generally involves the use of application clusters protected by load balancers – so you can take each app out of policy and upgrade it without users trying to access it while it is restarting. You have to consider session stickyness, datasource consistency and all sorts of other stuff – but the main thing is that it isn’t magic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a new web application that uses Linux, Apache, Tomcat, Wicket, JPA/Hibernate, and
I am building a web application that is currently PHP with MySQL. There is
Ok, this is downright bizarre. I am building a web application that relies on
We're building a latency-sensitive web application that uses websockets (or a Flash fallback) for
I'm currently building an web application for a customer that uses a rich client.
I am building a web application that uses the database for Users, Security/roles, and
I am building a web application that uses the UCMA API 3.0 to establish
I am following this tutorial http://wicket.wordpress.com/2010/01/08/template-for-building-authenticated-webapplication/ in order to learn how to make login
I am building a ASP.NET MVC webapplication and have a question: Say that I
We're building a blog-like Pylons web application that uses CKeditor and allows to upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.