[portal-commits] JBoss Portal SVN: r8825 - in branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate: portal and 1 other directory.
portal-commits at lists.jboss.org
portal-commits at lists.jboss.org
Sat Nov 3 11:14:20 EDT 2007
Author: thomas.heute at jboss.com
Date: 2007-11-03 11:14:20 -0400 (Sat, 03 Nov 2007)
New Revision: 8825
Modified:
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/hibernate.cfg.xml
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/hibernate.cfg.xml
Log:
Setting hbm2ddl to "update" so that it can works with a database schema produced in earlier releases.
"update" is not safe to all database though, and then is risky.
In this case it is done in order to add 2 new tables without modifying the existing tables.
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/hibernate.cfg.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/hibernate.cfg.xml 2007-11-03 03:38:54 UTC (rev 8824)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/instance/hibernate.cfg.xml 2007-11-03 15:14:20 UTC (rev 8825)
@@ -31,6 +31,7 @@
<property name="show_sql">@portal.sql.show@</property>
<property name="cache.use_second_level_cache">true</property>
<property name="cache.use_query_cache">true</property>
+ <property name="hibernate.hbm2ddl.auto">update</property>
<!--
| Uncomment in clustered mode : use transactional replicated cache
Modified: branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/hibernate.cfg.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/hibernate.cfg.xml 2007-11-03 03:38:54 UTC (rev 8824)
+++ branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-sar/conf/hibernate/portal/hibernate.cfg.xml 2007-11-03 15:14:20 UTC (rev 8825)
@@ -31,7 +31,7 @@
<property name="show_sql">@portal.sql.show@</property>
<property name="cache.use_second_level_cache">true</property>
<property name="cache.use_query_cache">true</property>
-
+ <property name="hibernate.hbm2ddl.auto">update</property>
<!--
| Uncomment in clustered mode : use transactional replicated cache
@portal.single.xml.close@
More information about the portal-commits
mailing list