Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-persistence/src/main/resources/eu/etaxonomy/cdm/persistence.xml | ||
---|---|---|
25 | 25 |
<property name="configLocation" value="classpath:eu/etaxonomy/cdm/hibernate.cfg.xml"/> |
26 | 26 |
<property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"/> |
27 | 27 |
<!-- |
28 |
Do NOT specify the dataSource in org.springframework.orm.hibernate3.LocalSessionFactoryBean |
|
29 |
if using org.hibernate.connection.C3P0ConnectionProvider. |
|
30 |
Specifying it causes Spring to not honor the hibernate.connection.provider_class property |
|
31 |
specified in the Hibernate properties section. |
|
32 |
--> |
|
28 |
If dataSource is set, this will override corresponding settings in Hibernate properties. |
|
29 |
If this is set, the Hibernate settings should not define a connection provider to |
|
30 |
avoid meaningless double configuration. |
|
31 |
|
|
32 |
see also org.springframework.orm.hibernate3.AbstractSessionFactoryBean.setDataSource(DataSource dataSource) |
|
33 |
--> |
|
33 | 34 |
<property name="dataSource" ref="dataSource"/> |
34 | 35 |
<property name="hibernateProperties" ref="hibernateProperties"/> |
35 | 36 |
</bean> |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk