From 5dbf70699ee1c398d9810d5e38be5584e5156d65 Mon Sep 17 00:00:00 2001 From: markpollack Date: Wed, 16 Dec 2009 17:47:42 +0000 Subject: [PATCH] SPRNET-1250 - Document use of 'DelegatingLocalSessionFactoryObject' and 'UserCredentialsDbProvider' --- doc/reference/src/dbprovider.xml | 70 ++++++++++++++++++-------------- doc/reference/src/orm.xml | 13 +++++- 2 files changed, 52 insertions(+), 31 deletions(-) diff --git a/doc/reference/src/dbprovider.xml b/doc/reference/src/dbprovider.xml index 30be6d9d..d88833c2 100644 --- a/doc/reference/src/dbprovider.xml +++ b/doc/reference/src/dbprovider.xml @@ -119,14 +119,14 @@ - SqlServer-1.1 - Microsoft SQL Server, provider - V1.0.5000.0 in framework .NET V1.1 + SqlServer-1.1 - Microsoft SQL Server, + provider V1.0.5000.0 in framework .NET V1.1 SqlServer-2.0 (aliased to - System.Data.SqlClient) - Microsoft SQL Server, provider - V2.0.0.0 in framework .NET V2.0 + System.Data.SqlClient) - Microsoft SQL Server, + provider V2.0.0.0 in framework .NET V2.0 @@ -153,8 +153,8 @@ OracleClient-2.0 (aliased to - System.Data.OracleClient) - Oracle, Microsoft provider - V2.0.0.0 + System.Data.OracleClient) - Oracle, Microsoft + provider V2.0.0.0 @@ -201,7 +201,7 @@ MySql-5.2.3 - MySQL, MySQL provider 5.2.3.0 - + MySql-6.1.3 (aliased to MySql.Data.MySqlClient) - MySQL, MySQL provider @@ -244,36 +244,35 @@ IBM.Data.DB2.9.1.0) - IBM DB2 Data Provider 9.1.0 for .NET Framework 2.0 - + - iDB2-10.0.0.0 - IBM iSeries DB2 Data Provider 10.0.0.0 - for .NET Framework 2.0 + iDB2-10.0.0.0 - IBM iSeries DB2 Data Provider + 10.0.0.0 for .NET Framework 2.0 - SQLite-1.0.43 - SQLite provider 1.0.43 for .NET - Framework 2.0 - - - - SQLite-1.0.44 - SQLite provider 1.0.44 for .NET - Framework 2.0 + SQLite-1.0.43 - SQLite provider 1.0.43 for + .NET Framework 2.0 - SQLite-1.0.47 - SQLite provider 1.0.47 for .NET - Framework 2.0 - - - - SQLite-1.0.56 - SQLite provider 1.0.56 for .NET - Framework 2.0 + SQLite-1.0.44 - SQLite provider 1.0.44 for + .NET Framework 2.0 - SQLite-1.0.65 (aliased to - System.Data.SQLite) - SQLite provider 1.0.65 for .NET Framework - 2.0 + SQLite-1.0.47 - SQLite provider 1.0.47 for + .NET Framework 2.0 + + + + SQLite-1.0.56 - SQLite provider 1.0.56 for + .NET Framework 2.0 + + + + SQLite-1.0.65 (aliased to System.Data.SQLite) + - SQLite provider 1.0.65 for .NET Framework 2.0 The default parameter prefix used in SQLite is : and not @, @@ -284,7 +283,8 @@ Firebird-2.1 (aliased to - Firebird-2.1) - Firebird Server, provider V2.1.0.0 in framework .NET V2.0 + Firebird-2.1) - Firebird Server, provider V2.1.0.0 + in framework .NET V2.0 @@ -314,8 +314,8 @@ Cache-2.0.0.1 (aliased to - InterSystems.Data.CacheClient) - Cache provider Version 2.0.0.1 - in framework .NET V2 + InterSystems.Data.CacheClient) - Cache provider + Version 2.0.0.1 in framework .NET V2 @@ -501,6 +501,16 @@ interface that add addtional behavior on top of the standard implementation. + + These provider implementations do not take into account usage with + NHibernate. NHibernate scopes a SessionFactory, where second level + caching is managed, to each connection. This forum + thread, contains an implementation of the class + LocalDelegatingSessionFactoryObject that will create multiple + SessionFactories for each database connection. + +
UserCredentialsDbProvider diff --git a/doc/reference/src/orm.xml b/doc/reference/src/orm.xml index cbde9422..46c15d88 100644 --- a/doc/reference/src/orm.xml +++ b/doc/reference/src/orm.xml @@ -395,6 +395,18 @@ implementation of MultiDelegatingDbProvider. +
+ Using FluentNHibernate to configure mappings with + LocalSessionFactoryObject + + Direct support for configuration of NHibernate mapping files + using FluentNHibernate will be included in a future release. Until + then, to see how you can extend LocalSessionFactoryObject to suppport + using FluentNHibernate follow the instructions on Benny Michielson's + blog post here. +
+
Spring's IByteCodeProvider implementation @@ -591,7 +603,6 @@ public class HibernateCustomerDao : ICustomerDao {
-
Declarative transaction demarcation