Project

General

Profile

« Previous | Next » 

Revision f12f1234

Added by Andreas Müller almost 2 years ago

minor

View differences:

cdmlib-persistence/src/main/resources/eu/etaxonomy/cdm/hibernate.cfg.xml
21 21

  
22 22
          IMPORTANT:
23 23
          Because of the constraint (1) the org.hibernate.connection.C3P0ConnectionProvider are not be used
24
          for the Cdm Library because it requires the dataSource bean in some cases.
24
          for the CDM Library because it requires the dataSource bean in some cases.
25 25

  
26 26
          (1)
27 27
          Do NOT specify the dataSource in the sessionFactory for example in the
28 28
          org.springframework.orm.hibernate3.LocalSessionFactoryBean
29
          !!!==> If *dataSource* is set, this will override corresponding settings in Hibernate properties.!!!
30
			  If this is set, the Hibernate settings should not define a connection provider to
29
          !!!==> If *dataSource* is set, this will override corresponding settings in hibernate properties.!!!
30
			  If this is set, the hibernate settings should not define a connection provider to
31 31
		      avoid meaningless double configuration.
32 32
          (2)
33 33
          Hibernate uses the hibernate.c3p0.max_size property to determine if c3p0
34
          is beeing used.  Therefore the max_size property MUST be set. - maybe not need in hibernate 3.4 +
34
          is beeing used. Therefore the max_size property MUST be set. - maybe not need in hibernate 3.4 +
35 35

  
36
          (3) If you are using Hibernate's C3P0ConnectionProvider you must set the following properties
36
          (3) If you are using hibernate's C3P0ConnectionProvider you must set the following properties
37 37
          in your hibernate configuration, using hibernate-specific configuration keys.
38 38
          All other properties must be defined as usual in a c3p0.properties file.
39 39
          This is confusing, and will hopefully be simplified some time in the future, but for now...

Also available in: Unified diff