-
1. Re: How do folks typically handle initial vs. redeployment a
christian.bauer Aug 16, 2007 5:32 PM (in response to grettke_spdr)Never! What you do is remove this configuration option completely. Then you generate a DDL file with SQL statements using the Hibernate Tools tasks for Ant. This file is handed over to a professional DBA to clean and deploy on the staging and production databases.
-
2. Re: How do folks typically handle initial vs. redeployment a
grettke_spdr Aug 17, 2007 11:50 AM (in response to grettke_spdr)"christian.bauer@jboss.com" wrote:
Never! What you do is remove this configuration option completely. Then you generate a DDL file with SQL statements using the Hibernate Tools tasks for Ant. This file is handed over to a professional DBA to clean and deploy on the staging and production databases.
Thanks Christian.
For interested folks:
http://www.hibernate.org/hib_docs/tools/reference/en/html_single/#d0e1137 -
3. Re: How do folks typically handle initial vs. redeployment a
grettke_spdr Aug 17, 2007 11:54 AM (in response to grettke_spdr)"christian.bauer@jboss.com" wrote:
Never! What you do is remove this configuration option completely. Then you generate a DDL file with SQL statements using the Hibernate Tools tasks for Ant. This file is handed over to a professional DBA to clean and deploy on the staging and production databases.
We're using a seam-gen'd project that uses hibernate-all.jar. Same rules apply? -
4. Re: How do folks typically handle initial vs. redeployment a
grettke_spdr Aug 17, 2007 12:15 PM (in response to grettke_spdr)"grettke_spdr" wrote:
"christian.bauer@jboss.com" wrote:
Never! What you do is remove this configuration option completely. Then you generate a DDL file with SQL statements using the Hibernate Tools tasks for Ant. This file is handed over to a professional DBA to clean and deploy on the staging and production databases.
We're using a seam-gen'd project that uses hibernate-all.jar. Same rules apply?
I see, we used 1.2.1GA with uses Hibernate 3.2.1.ga for Hibernate, Annotations, and Entity Manager. Compatible with Hibernate Tools 3.2.0 beta 9. -
5. Re: How do folks typically handle initial vs. redeployment a
tim_ph Aug 17, 2007 12:45 PM (in response to grettke_spdr)Once the app is stablelized with minimal update, you can set auto = update in persistence-dev.xml like this
<property name="hibernate.hbm2ddl.auto" value="update"/>
-
6. Re: How do folks typically handle initial vs. redeployment a
christian.bauer Aug 17, 2007 12:58 PM (in response to grettke_spdr)YOU SHOULD NEVER RUN AUTOMATIC SCHEMA MODIFICATIONS IN PRODUCTION no matter what persistence software you use.
-
7. Re: How do folks typically handle initial vs. redeployment a
alexg79 Aug 17, 2007 1:36 PM (in response to grettke_spdr)We're a small company and as such don't have any special DBA personnel. Therefore I vouch for auto = update during development and initial deployment, and then switch to validation (no schema updates). I don't see anything wrong with that.
-
8. Re: How do folks typically handle initial vs. redeployment a
grettke_spdr Aug 17, 2007 2:34 PM (in response to grettke_spdr)Where does one find boss-archive-browsing.jar?