Author: agilliland
Date: Sat Apr  8 15:40:23 2006
New Revision: 392620

URL: http://svn.apache.org/viewcvs?rev=392620&view=rev
Log:
first batch of backend refactorings.

- removing old HitCountData mapping
- setting session management scope to thread local


Modified:
    
incubator/roller/branches/roller-newbackend/metadata/database/hibernate/hibernate.cfg.xml

Modified: 
incubator/roller/branches/roller-newbackend/metadata/database/hibernate/hibernate.cfg.xml
URL: 
http://svn.apache.org/viewcvs/incubator/roller/branches/roller-newbackend/metadata/database/hibernate/hibernate.cfg.xml?rev=392620&r1=392619&r2=392620&view=diff
==============================================================================
--- 
incubator/roller/branches/roller-newbackend/metadata/database/hibernate/hibernate.cfg.xml
 (original)
+++ 
incubator/roller/branches/roller-newbackend/metadata/database/hibernate/hibernate.cfg.xml
 Sat Apr  8 15:40:23 2006
@@ -5,11 +5,16 @@
 <hibernate-configuration>
     <session-factory>
     
-        <!-- By default Roller uses a JNDI DataSource and the MySQLDialect -->
-        <property name="show_sql">false</property>
+        <!-- By default Roller uses a JNDI DataSource -->
         <property 
name="connection.datasource">java:comp/env/jdbc/rollerdb</property>
-        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
+        <property name="show_sql">false</property>
+        
+        <!-- use thread local Session context -->
+        <property 
name="hibernate.current_session_context_class">thread</property>
         
+        
+        <!-- select SQL dialect, MySQL by default -->
+        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
         <!--
         If you want to use HSQLDB, PostgreSQL, DB2 or Derby, Oracle, SQLServer 
then use the right dialect   
         <property name="dialect">org.hibernate.dialect.HQLDBDialect</property> 
@@ -42,13 +47,14 @@
         <property 
name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
         -->
 
+        
         <!-- Hibernate L2 Caching -->
         <property 
name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
         <property name="hibernate.generate_statistics">true</property>
         <property name="hibernate.cache.use_structured_entries">true</property>
         
+        
         <!-- Map Roller pojo classes -->
-        <mapping resource="org/roller/business/HitCountData.hbm.xml" />
         <mapping resource="org/roller/pojos/BookmarkData.hbm.xml" />
         <mapping resource="org/roller/pojos/CommentData.hbm.xml" />
         <mapping resource="org/roller/pojos/EntryAttributeData.hbm.xml" />


Reply via email to