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

  • SEARCH
  • Home
  • 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 6824401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:53:50+00:00 2026-05-26T21:53:50+00:00

I have a data access layer represented by an Eclipse project. I use Hibernate

  • 0

I have a data access layer represented by an Eclipse project. I use Hibernate 3 as persistence framework. So, in this project, I have my annotated entities and the resources used by Hibernate (persistence.xml, XXX.cfg.xml).

My question now is more about how QA and production. I have other projects that use this data access layer. Also, my entities may be modified during the project evolution.
When I release one of these projects to QA, and that the data access layer has been modified (entities modifications), the QA database has to been modified accordingly. And that’s the same for production.

What are the best practices for this scenario? I use Maven as build system. Do you think the use of hibernate3-maven-plugin is appropriated for this case?

Thanks for your help!

  • 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-05-26T21:53:51+00:00Added an answer on May 26, 2026 at 9:53 pm

    I would recommend against using hibernate3-maven-plugin (with hbm2ddl.auto) in production/QA because it might have undesired/unexpected side effects. I think I read somewhere that the Hibernate creators themselves actually recommend against using hbm2ddl.auto in production.

    It is best to just write your own SQL patches to change the database schema (It will be better optimised as well).

    To keep track of the scripts we have directories (in source control) corresponding to a software version (example: 1.14.1) and all SQL patches for changes to run for a specific version (we make sure to keep them re-runnable without side effects) are kept there. When deploying 1.14.1 we run the required scripts for the software release (we also have a script that can automatically run all the required scripts but usually it is done manually).

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

Sidebar

Related Questions

In our data access layer at work we have this standard implementation where the
I have a project with a formidable data access layer using LinqtoSQL for just
I have to design a Data Access Layer with .NET that probably will use
I have a data access layer (DAL) using Entity Framework, and I want to
I have a web project (mvc) and data access layer in a separated class
In a project we have implemented the data access layer (DAL) with a visual
We have our Data Access Layer setup to use repositories, services, and specifications (for
I have a (DAL) Data Access Layer (but this question is relevant for DAOs
I have a data access layer, a business logic layer and a presentation layer
I have a data access layer (DAL) that is written in ASP.NET 3.5 and

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.