Revision d1fcc397
Added by Andreas Müller almost 8 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/mappings/hibernate.cfg.xml | ||
---|---|---|
7 | 7 |
<session-factory> |
8 | 8 |
|
9 | 9 |
<property name="connection.release_mode">after_transaction</property> |
10 |
|
|
11 |
<property name="hibernate.implicit_naming_strategy">org.hibernate.boot.model.naming.ImplicitNamingStrategyComponentPathImpl</property> |
|
12 |
|
|
10 | 13 |
|
11 | 14 |
<!-- Connection Pooling --> |
12 | 15 |
<!-- <property name="hibernate.connection.provider_class">org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider</property> --> |
13 |
<property name="hibernate.connection.provider_class">org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl</property> |
|
14 |
<!-- |
|
16 |
<!-- <property name="hibernate.connection.provider_class">org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl</property> |
|
17 |
--> |
|
18 |
<property name="hibernate.connection.provider_class">eu.etaxonomy.taxeditor.remoting.cache.CdmModelCacherConnectionProvider</property> |
|
19 |
|
|
20 |
<!-- |
|
15 | 21 |
Configuring the C3P0ConnectionProvider |
16 | 22 |
======================================== |
17 | 23 |
see http://www.mchange.com/projects/c3p0/index.html#hibernate-specific |
... | ... | |
204 | 210 |
<!-- View Package --> |
205 | 211 |
<mapping class="eu.etaxonomy.cdm.model.view.AuditEvent"/> |
206 | 212 |
|
207 |
<!-- for filling caches --> |
|
208 |
<!-- since hibernate 4 listeners are not handled via hibernate.cfg.xml anymore --> |
|
209 |
<!-- http://stackoverflow.com/questions/8616146/eventlisteners-using-hibernate-4-0-with-spring-3-1-0-release |
|
210 |
https://community.jboss.org/wiki/HibernateCoreMigrationGuide40 --> |
|
213 |
|
|
211 | 214 |
|
212 | 215 |
</session-factory> |
213 | 216 |
</hibernate-configuration> |
Also available in: Unified diff
Preliminary adapt CDM model cacher script to work for cached model update