[jboss-cvs] jboss-portal-docs/referenceGuide/en/modules ...

Roy Russo russo at jboss.com
Wed Jul 12 15:09:39 EDT 2006


  User: russo   
  Date: 06/07/12 15:09:39

  Modified:    referenceGuide/en/modules  configuration.xml
  Log:
  JBPORTAL-944
  
  Revision  Changes    Path
  1.7       +23 -9     jboss-portal-docs/referenceGuide/en/modules/configuration.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: configuration.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal-docs/referenceGuide/en/modules/configuration.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- configuration.xml	26 May 2006 21:05:00 -0000	1.6
  +++ configuration.xml	12 Jul 2006 19:09:39 -0000	1.7
  @@ -130,7 +130,7 @@
         </para>
         <sect2>
            <title>DB Dialect settings for the portal core</title>
  -         <para>Modify jboss-portal.sar/conf/hibernate/[module]/hibernate.cfg.xml. A list of supported dialects
  +         <para>Modify <emphasis>jboss-portal.sar/conf/hibernate/[module]/hibernate.cfg.xml</emphasis>. A list of supported dialects
               for Hibernate3, can be found
               <ulink
                     url="http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html#configuration-optional-dialects"
  @@ -162,19 +162,33 @@
         </sect2>
         <sect2>
            <title>DB Dialect settings for the CMS component</title>
  -         <para>Modify jboss-portal.sar/portal-cms.sar/META-INF/jboss-service.xml. A list of supported dialects
  +         <para>Modify <emphasis>jboss-portal.sar/portal-cms.sar/conf/hibernate/cms/hibernate.cfg.xml</emphasis>. A list of supported dialects
               for Hibernate3, can be found
               <ulink
                     url="http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html#configuration-optional-dialects"
                     >here</ulink>
               .
  -         </para>
  -         <para>
  -            You will be searching this file for the commented "org.hibernate.dialect." blocks. Once found, replace with
  -            whichever dialect you are trying
  -            to force from the Hibernate list. There are
  -            <emphasis role="bold">5</emphasis>
  -            such commented blocks in this file. Make sure you uncomment them all!
  +            <programlisting><![CDATA[
  +<?xml version='1.0' encoding='utf-8'?>
  +<!DOCTYPE hibernate-configuration PUBLIC
  +    "-//Hibernate/Hibernate Configuration DTD//EN"
  +    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  +<hibernate-configuration>
  +   <session-factory>
  +      <property name="connection.datasource">java:@portal.datasource.name@</property>
  +      <property name="show_sql">@portal.sql.show@</property>
  +      <property name="cache.use_second_level_cache">false</property>
  +      <property name="cache.use_query_cache">true</property>
  +
  +      <!-- Force the dialect instead of using autodetection -->
  +      <!--
  +      <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
  +      -->
  +
  +      <!-- Mapping files -->
  +      <mapping resource="conf/hibernate/cms/domain.hbm.xml"/>
  +   </session-factory>
  +</hibernate-configuration>]]></programlisting>
            </para>
         </sect2>
      </sect1>
  
  
  



More information about the jboss-cvs-commits mailing list