Author: vmassol
Date: 2007-10-09 19:23:36 +0200 (Tue, 09 Oct 2007)
New Revision: 5333

Modified:
   
xwiki-platform/xwiki-tools/trunk/xwiki-configuration-resources/src/main/resources/hibernate.cfg.xml.vm
Log:
XTOOLS-17: Add commented out configuration for PostreSQL in the default 
Hibernate configuration file

Modified: 
xwiki-platform/xwiki-tools/trunk/xwiki-configuration-resources/src/main/resources/hibernate.cfg.xml.vm
===================================================================
--- 
xwiki-platform/xwiki-tools/trunk/xwiki-configuration-resources/src/main/resources/hibernate.cfg.xml.vm
      2007-10-09 15:14:11 UTC (rev 5332)
+++ 
xwiki-platform/xwiki-tools/trunk/xwiki-configuration-resources/src/main/resources/hibernate.cfg.xml.vm
      2007-10-09 17:23:36 UTC (rev 5333)
@@ -74,6 +74,21 @@
     <mapping resource="feeds.hbm.xml"/>
     -->
 
+    <!-- PostgreSQL configuration.
+         Uncomment if you want to use PostgreSQL and comment out other 
database configurations.
+         Note that the database will be created automatically if it doesn't 
already exist.
+    <property name="connection.url">jdbc:postgresql:xwiki</property>
+    <property name="connection.username">xwiki</property>
+    <property name="connection.password">xwiki</property>
+    <property name="connection.driver_class">org.postgresql.Driver</property>
+    <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
+    <property 
name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
+    <property name="connection.pool_size">2</property>
+    <property name="statement_cache.size">2</property>
+    <mapping resource="xwiki.hbm.xml"/>
+    <mapping resource="feeds.hbm.xml"/>
+    -->
+
     <!-- Oracle configuration.
          Uncomment if you want to use Oracle and comment out other database 
configurations.
          Note: the 2 properties named 
"hibernate.connection.SetBigStringTryClob" and

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to