|
3 | 3 | <bytecode-provider type="lcg"/>
|
4 | 4 | <reflection-optimizer use="true"/>
|
5 | 5 | <session-factory name="NHibernate.Test">
|
| 6 | + <property name="dialect">NHibernate.Dialect.SQLiteDialect</property> |
| 7 | + <property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property> |
| 8 | + <!-- DateTimeFormatString allows to prevent storing the fact that written date was having kind UTC, |
| 9 | + which dodges the undesirable time conversion to local done on reads by System.Data.SQLite. |
| 10 | + See https://system.data.sqlite.org/index.html/tktview/44a0955ea344a777ffdbcc077831e1adc8b77a36 |
| 11 | + and https://github.com/nhibernate/nhibernate-core/issues/1362 --> |
| 12 | + <property name="connection.connection_string"> |
| 13 | + Data Source=nhibernate.db; |
| 14 | + DateTimeFormatString=yyyy-MM-dd HH:mm:ss.FFFFFFF; |
| 15 | + </property> |
| 16 | + |
6 | 17 | <property name="connection.provider">NHibernate.Test.DebugConnectionProvider, NHibernate.Search.Tests</property>
|
7 |
| - <property name="connection.isolation">ReadCommitted</property> |
| 18 | + <property name="connection.isolation">ReadCommitted</property> <!-- See System.Data.IsolationLevel for valid values --> |
| 19 | + |
| 20 | + <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, NHibernate</property> |
| 21 | + <property name="cache.use_query_cache">true</property> |
8 | 22 |
|
9 |
| - <!-- This is the System.Data.dll provider for MSSQL Server --> |
10 |
| - <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> |
11 |
| - <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> |
12 |
| - <property name="connection.connection_string">Server=.\SQLExpress;initial catalog=nhibernate;Integrated Security=SSPI</property> |
13 | 23 | <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
|
14 | 24 | <property name="adonet.batch_size">10</property>
|
15 | 25 | <property name="prepare_sql">false</property>
|
16 |
| - <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, NHibernate</property> |
17 |
| - <property name="cache.use_query_cache">true</property> |
18 |
| - |
| 26 | + |
19 | 27 | <!-- the following part is not read by the test, they are here being a template-->
|
20 |
| - <listener class='NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search' type='post-insert'/> |
21 |
| - <listener class='NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search' type='post-update'/> |
22 |
| - <listener class='NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search' type='post-delete'/> |
| 28 | + <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-insert"/> |
| 29 | + <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-update"/> |
| 30 | + <listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-delete"/> |
| 31 | + <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-recreate"/> |
| 32 | + <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-remove"/> |
| 33 | + <listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-update"/> |
23 | 34 | </session-factory>
|
24 | 35 | </hibernate-configuration>
|
0 commit comments