From: <fab...@us...> - 2009-07-14 13:59:38
|
Revision: 4614 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4614&view=rev Author: fabiomaulo Date: 2009-07-14 13:59:33 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Merge r4613 Modified Paths: -------------- trunk/nhibernate/doc/reference/modules/configuration.xml Modified: trunk/nhibernate/doc/reference/modules/configuration.xml =================================================================== --- trunk/nhibernate/doc/reference/modules/configuration.xml 2009-07-14 13:57:26 UTC (rev 4613) +++ trunk/nhibernate/doc/reference/modules/configuration.xml 2009-07-14 13:59:33 UTC (rev 4614) @@ -203,7 +203,7 @@ <tbody> <row> <entry> - <literal>hibernate.connection.provider_class</literal> + <literal>connection.provider_class</literal> </entry> <entry> The type of a custom <literal>IConnectionProvider</literal>. @@ -218,7 +218,7 @@ </row> <row> <entry> - <literal>hibernate.connection.driver_class</literal> + <literal>connection.driver_class</literal> </entry> <entry> The type of a custom <literal>IDriver</literal>, if using <literal>DriverConnectionProvider</literal>. @@ -228,7 +228,7 @@ if using an implementation of IDriver not included in NHibernate. </para> <para> - This is usually not needed, most of the time the <literal>hibernate.dialect</literal> will + This is usually not needed, most of the time the <literal>dialect</literal> will take care of setting the <literal>IDriver</literal> using a sensible default. See the API documentation of the specific dialect for the defaults. </para> @@ -236,7 +236,7 @@ </row> <row> <entry> - <literal>hibernate.connection.connection_string</literal> + <literal>connection.connection_string</literal> </entry> <entry> Connection string to use to obtain the connection. @@ -244,7 +244,7 @@ </row> <row> <entry> - <literal>hibernate.connection.connection_string_name</literal> + <literal>connection.connection_string_name</literal> </entry> <entry> The name of the connection string (defined in <literal><connectionStrings></literal> @@ -253,7 +253,7 @@ </row> <row> <entry> - <literal>hibernate.connection.isolation</literal> + <literal>connection.isolation</literal> </entry> <entry> Set the ADO.NET transaction isolation level. Check @@ -267,7 +267,7 @@ </row> <row> <entry> - <literal>hibernate.connection.release_mode</literal> + <literal>connection.release_mode</literal> </entry> <entry> Specify when NHibernate should release ADO.NET connections. @@ -289,7 +289,7 @@ </row> <row> <entry> - <literal>hibernate.command_timeout</literal> + <literal>command_timeout</literal> </entry> <entry> Specify the default timeout of <literal>IDbCommands</literal> @@ -298,7 +298,7 @@ </row> <row> <entry> - <literal>hibernate.adonet.batch_size</literal> + <literal>adonet.batch_size</literal> </entry> <entry> Specify the batch size to use when batching update statements. Setting this to 0 @@ -317,35 +317,25 @@ <programlisting id="we-config-configuration" revision="1"><![CDATA[<?xml version="1.0" encoding="utf-8" ?> <configuration> - <configSections> - <section name="nhibernate" type="System.Configuration.NameValueSectionHandler, System, - Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> - </configSections> - - <nhibernate> - <add - key="hibernate.connection.provider" - value="NHibernate.Connection.DriverConnectionProvider" - /> - <add - key="hibernate.dialect" - value="NHibernate.Dialect.MsSql2000Dialect" - /> - <add - key="hibernate.connection.driver_class" - value="NHibernate.Driver.SqlClientDriver" - /> - <add - key="hibernate.connection.connection_string" - value="Server=127.0.0.1; Initial Catalog=thedatabase; Integrated Security=SSPI" - /> - <add - key="hibernate.connection.isolation" - value="ReadCommitted" - /> - - </nhibernate> - + <configSections> + <section name="hibernate-configuration" + type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" /> + </configSections> + + <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> + <session-factory> + <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property> + <property name="connection.connection_string"> + Server=(local);initial catalog=theDb;Integrated Security=SSPI + </property> + <property name="connection.isolation">ReadCommitted</property> + + <property name="proxyfactory.factory_class"> + NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu + </property> + </session-factory> + </hibernate-configuration> + <!-- other app specific config follows --> </configuration>]]></programlisting> @@ -356,7 +346,7 @@ <para> You may define your own plugin strategy for obtaining ADO.NET connections by implementing the interface <literal>NHibernate.Connection.IConnectionProvider</literal>. You may select - a custom implementation by setting <literal>hibernate.connection.provider_class</literal>. + a custom implementation by setting <literal>connection.provider_class</literal>. </para> </sect1> @@ -393,7 +383,7 @@ <tbody> <row> <entry> - <literal>hibernate.dialect</literal> + <literal>dialect</literal> </entry> <entry> The classname of a NHibernate <literal>Dialect</literal> - enables @@ -406,7 +396,7 @@ </row> <row> <entry> - <literal>hibernate.default_schema</literal> + <literal>default_schema</literal> </entry> <entry> Qualify unqualified tablenames with the given schema/tablespace @@ -419,7 +409,7 @@ </row> <row> <entry> - <literal>hibernate.use_outer_join</literal> + <literal>use_outer_join</literal> </entry> <entry> Enables outer join fetching. Deprecated, use <literal>max_fetch_depth</literal>. @@ -431,7 +421,7 @@ </row> <row> <entry> - <literal>hibernate.max_fetch_depth</literal> + <literal>max_fetch_depth</literal> </entry> <entry> Set a maximum "depth" for the outer join fetch tree @@ -445,7 +435,7 @@ </row> <row> <entry> - <literal>hibernate.use_reflection_optimizer</literal> + <literal>use_reflection_optimizer</literal> </entry> <entry> Enables use of a runtime-generated class to set or get properties of an entity @@ -463,7 +453,7 @@ </row> <row> <entry> - <literal>hibernate.bytecode.provider</literal> + <literal>bytecode.provider</literal> </entry> <entry> Specifies the bytecode provider to use to optimize the use of reflection in NHibernate. @@ -479,7 +469,7 @@ </row> <row> <entry> - <literal>hibernate.cache.provider_class</literal> + <literal>cache.provider_class</literal> </entry> <entry> The classname of a custom <literal>ICacheProvider</literal>. @@ -491,7 +481,7 @@ </row> <row> <entry> - <literal>hibernate.cache.use_minimal_puts</literal> + <literal>cache.use_minimal_puts</literal> </entry> <entry> Optimize second-level cache operation to minimize writes, at the @@ -504,7 +494,7 @@ </row> <row> <entry> - <literal>hibernate.cache.use_query_cache</literal> + <literal>cache.use_query_cache</literal> </entry> <entry> Enable the query cache, individual queries still have to be set cacheable. @@ -516,7 +506,7 @@ </row> <row> <entry> - <literal>hibernate.cache.query_cache_factory</literal> + <literal>cache.query_cache_factory</literal> </entry> <entry> The classname of a custom <literal>IQueryCacheFactory</literal> interface, @@ -529,7 +519,7 @@ </row> <row> <entry> - <literal>hibernate.cache.region_prefix</literal> + <literal>cache.region_prefix</literal> </entry> <entry> A prefix to use for second-level cache region names. @@ -541,7 +531,7 @@ </row> <row> <entry> - <literal>hibernate.query.substitutions</literal> + <literal>query.substitutions</literal> </entry> <entry> Mapping from tokens in NHibernate queries to SQL tokens @@ -554,7 +544,7 @@ </row> <row> <entry> - <literal>hibernate.show_sql</literal> + <literal>show_sql</literal> </entry> <entry> Write all SQL statements to console. @@ -566,7 +556,7 @@ </row> <row> <entry> - <literal>hibernate.hbm2ddl.auto</literal> + <literal>hbm2ddl.auto</literal> </entry> <entry> Automatically export schema DDL to the database when the @@ -582,7 +572,7 @@ </row> <row> <entry> - <literal>hibernate.use_proxy_validator</literal> + <literal>use_proxy_validator</literal> </entry> <entry> Enables or disables validation of interfaces or classes specified @@ -595,7 +585,7 @@ </row> <row> <entry> - <literal>hibernate.transaction.factory_class</literal> + <literal>transaction.factory_class</literal> </entry> <entry> The classname of a custom <literal>ITransactionFactory</literal> implementation, @@ -614,7 +604,7 @@ <title>SQL Dialects</title> <para> - You should always set the <literal>hibernate.dialect</literal> property to the correct + You should always set the <literal>dialect</literal> property to the correct <literal>NHibernate.Dialect.Dialect</literal> subclass for your database. This is not strictly essential unless you wish to use <literal>native</literal> or <literal>sequence</literal> primary key generation or pessimistic locking (with, eg. @@ -624,7 +614,7 @@ </para> <table frame="topbot" id="sql-dialects" revision="2"> - <title>NHibernate SQL Dialects (<literal>hibernate.dialect</literal>)</title> + <title>NHibernate SQL Dialects (<literal>dialect</literal>)</title> <tgroup cols="2"> <colspec colwidth="1*"/> <colspec colwidth="2.5*"/> @@ -685,16 +675,21 @@ <entry></entry> </row> <row> - <entry>Oracle (any version)</entry> - <entry><literal>NHibernate.Dialect.OracleDialect</literal></entry> + <entry>Oracle </entry> + <entry><literal>NHibernate.Dialect.Oracle8iDialect</literal></entry> <entry></entry> </row> <row> - <entry>Oracle 9/10g</entry> - <entry><literal>NHibernate.Dialect.Oracle9Dialect</literal></entry> + <entry>Oracle 9</entry> + <entry><literal>NHibernate.Dialect.Oracle9iDialect</literal></entry> <entry></entry> </row> <row> + <entry>Oracle 10g</entry> + <entry><literal>NHibernate.Dialect.Oracle10gDialect</literal></entry> + <entry></entry> + </row> + <row> <entry>Sybase Adaptive Server Enterprise</entry> <entry><literal>NHibernate.Dialect.SybaseDialect</literal></entry> <entry></entry> @@ -728,7 +723,7 @@ <entry>Firebird</entry> <entry><literal>NHibernate.Dialect.FirebirdDialect</literal></entry> <entry> - Set <literal>hibernate.driver_class</literal> to + Set <literal>driver_class</literal> to <literal>NHibernate.Driver.FirebirdClientDriver</literal> for Firebird ADO.NET provider 2.0. </entry> @@ -737,7 +732,7 @@ <entry>SQLite</entry> <entry><literal>NHibernate.Dialect.SQLiteDialect</literal></entry> <entry> - Set <literal>hibernate.driver_class</literal> to + Set <literal>driver_class</literal> to <literal>NHibernate.Driver.SQLite20Driver</literal> for System.Data.SQLite provider for .NET 2.0. </entry> @@ -784,7 +779,7 @@ <para> Outer join fetching may be disabled <emphasis>globally</emphasis> by setting - the property <literal>hibernate.max_fetch_depth</literal> to <literal>0</literal>. + the property <literal>max_fetch_depth</literal> to <literal>0</literal>. A setting of <literal>1</literal> or higher enables outer join fetching for one-to-one and many-to-one associations which have been mapped with <literal>fetch="join"</literal>. @@ -808,7 +803,7 @@ You may integrate a process-level (or clustered) second-level cache system by implementing the interface <literal>NHibernate.Cache.ICacheProvider</literal>. You may select the custom implementation by setting - <literal>hibernate.cache.provider_class</literal>. See the + <literal>cache.provider_class</literal>. See the <xref linkend="performance-cache"/> for more details. </para> @@ -818,18 +813,18 @@ <title>Query Language Substitution</title> <para> - You may define new NHibernate query tokens using <literal>hibernate.query.substitutions</literal>. + You may define new NHibernate query tokens using <literal>query.substitutions</literal>. For example: </para> - <programlisting>hibernate.query.substitutions true=1, false=0</programlisting> + <programlisting>query.substitutions true=1, false=0</programlisting> <para> would cause the tokens <literal>true</literal> and <literal>false</literal> to be translated to integer literals in the generated SQL. </para> - <programlisting>hibernate.query.substitutions toLowercase=LOWER</programlisting> + <programlisting>query.substitutions toLowercase=LOWER</programlisting> <para> would allow you to rename the SQL <literal>LOWER</literal> function. @@ -858,7 +853,7 @@ messages. A lot of work has been put into making the NHibernate log as detailed as possible, without making it unreadable. It is an essential troubleshooting device. Also don't forget to enable SQL logging as - described above (<literal>hibernate.show_sql</literal>), it is your first + described above (<literal>show_sql</literal>), it is your first step when looking for performance problems. </para> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-14 14:39:49
|
Revision: 4616 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4616&view=rev Author: fabiomaulo Date: 2009-07-14 14:39:48 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Merge r4615 Modified Paths: -------------- trunk/nhibernate/doc/reference/modules/configuration.xml Modified: trunk/nhibernate/doc/reference/modules/configuration.xml =================================================================== --- trunk/nhibernate/doc/reference/modules/configuration.xml 2009-07-14 14:38:44 UTC (rev 4615) +++ trunk/nhibernate/doc/reference/modules/configuration.xml 2009-07-14 14:39:48 UTC (rev 4616) @@ -747,9 +747,7 @@ </table> <para> - Additional dialects may be available in the NHibernateContrib package (see - <xref linkend="part-contrib" />). At the time of writing this package contains - support for Microsoft Access (Jet) database engine. + Additional dialects may be available in the NHibernate.Dialect namespace. </para> </sect2> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2010-12-12 15:46:20
|
Revision: 5311 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5311&view=rev Author: fabiomaulo Date: 2010-12-12 15:46:14 +0000 (Sun, 12 Dec 2010) Log Message: ----------- Fix NH-2454 Modified Paths: -------------- trunk/nhibernate/doc/reference/modules/configuration.xml Modified: trunk/nhibernate/doc/reference/modules/configuration.xml =================================================================== --- trunk/nhibernate/doc/reference/modules/configuration.xml 2010-12-12 15:31:41 UTC (rev 5310) +++ trunk/nhibernate/doc/reference/modules/configuration.xml 2010-12-12 15:46:14 UTC (rev 5311) @@ -568,7 +568,32 @@ </para> </entry> </row> - <row> + <row> + <entry> + <literal>hbm2ddl.keywords</literal> + </entry> + <entry> + Automatically import <literal>reserved/keywords</literal> from the database when the + <literal>ISessionFactory</literal> is created. + <para> + <emphasis role="strong">none :</emphasis> + disable any operation regarding RDBMS KeyWords + </para> + <para> + <emphasis role="strong">keywords :</emphasis> + imports all RDBMS KeyWords where the <literal>Dialect</literal> can provide the implementation of <literal>IDataBaseSchema</literal>. + </para> + <para> + <emphasis role="strong">auto-quote :</emphasis> + imports all RDBMS KeyWords and auto-quote all table-names/column-names . + </para> + <para> + <emphasis role="strong">eg.</emphasis> + <literal>none</literal> | <literal>keywords</literal> | <literal>auto-quote</literal> + </para> + </entry> + </row> + <row> <entry> <literal>use_proxy_validator</literal> </entry> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-07-30 12:40:36
|
Revision: 5999 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5999&view=rev Author: fabiomaulo Date: 2011-07-30 12:40:30 +0000 (Sat, 30 Jul 2011) Log Message: ----------- Apply NH-2814 Modified Paths: -------------- trunk/nhibernate/doc/reference/modules/configuration.xml Modified: trunk/nhibernate/doc/reference/modules/configuration.xml =================================================================== --- trunk/nhibernate/doc/reference/modules/configuration.xml 2011-07-29 12:39:38 UTC (rev 5998) +++ trunk/nhibernate/doc/reference/modules/configuration.xml 2011-07-30 12:40:30 UTC (rev 5999) @@ -600,7 +600,7 @@ </entry> <entry> The classname of a custom <literal>ITransactionFactory</literal> implementation, - defaults to the built-in <literal>AdoNetTransactionFactory</literal>. + defaults to the built-in <literal>AdoNetWithDistributedTransactionFactory</literal>. <para> <emphasis role="strong">eg.</emphasis> <literal>classname.of.TransactionFactory, assembly</literal> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |