HHH-13412 Move custom driver properties into their own section
This commit is contained in:
parent
5fc6012449
commit
13afce9afb
|
@ -39,6 +39,13 @@ The `DataSource` `ConnectionProvider` also (optionally) accepts the `hibernate.c
|
||||||
If specified, the https://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html#getConnection-java.lang.String-java.lang.String-[`DataSource#getConnection(String username, String password)`] will be used.
|
If specified, the https://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html#getConnection-java.lang.String-java.lang.String-[`DataSource#getConnection(String username, String password)`] will be used.
|
||||||
Otherwise, the no-arg form is used.
|
Otherwise, the no-arg form is used.
|
||||||
|
|
||||||
|
[[database-connectionprovider-driver]]
|
||||||
|
=== Driver Configuration
|
||||||
|
`hibernate.connection.driver_class`:: The name of the JDBC Driver class to use
|
||||||
|
`hibernate.connection.url`:: The JDBC connection url
|
||||||
|
Any settings prefixed with `hibernate.connection.` (other than the "special ones"):: All such setting names will have the `hibernate.connection.` prefix stripped. The remaining name and the original value will be passed to the driver as a JDBC connection property
|
||||||
|
|
||||||
|
|
||||||
[[database-connectionprovider-c3p0]]
|
[[database-connectionprovider-c3p0]]
|
||||||
=== Using c3p0
|
=== Using c3p0
|
||||||
|
|
||||||
|
@ -48,13 +55,11 @@ To use the c3p0 integration, the application must include the `hibernate-c3p0` m
|
||||||
====
|
====
|
||||||
|
|
||||||
Hibernate also provides support for applications to use http://www.mchange.com/projects/c3p0/[c3p0] connection pooling.
|
Hibernate also provides support for applications to use http://www.mchange.com/projects/c3p0/[c3p0] connection pooling.
|
||||||
When using this c3p0 support, a number of additional configuration settings are recognized.
|
When c3p0 support is enabled, a number of c3p0-specific configuration settings are recognized in addition to the general ones described in <<database-connectionprovider-driver>>.
|
||||||
|
|
||||||
Transaction isolation of the Connections is managed by the `ConnectionProvider` itself. See <<database-connectionprovider-isolation>>.
|
Transaction isolation of the Connections is managed by the `ConnectionProvider` itself. See <<database-connectionprovider-isolation>>.
|
||||||
|
|
||||||
`hibernate.connection.driver_class`:: The name of the JDBC Driver class to use
|
|
||||||
`hibernate.connection.url`:: The JDBC connection url.
|
|
||||||
Any settings prefixed with `hibernate.connection.` (other than the "special ones"):: These all have the `hibernate.connection.` prefix stripped and the rest will be passed as JDBC connection properties
|
|
||||||
`hibernate.c3p0.min_size` or `c3p0.minPoolSize`:: The minimum size of the c3p0 pool. See http://www.mchange.com/projects/c3p0/#minPoolSize[c3p0 minPoolSize]
|
`hibernate.c3p0.min_size` or `c3p0.minPoolSize`:: The minimum size of the c3p0 pool. See http://www.mchange.com/projects/c3p0/#minPoolSize[c3p0 minPoolSize]
|
||||||
`hibernate.c3p0.max_size` or `c3p0.maxPoolSize`:: The maximum size of the c3p0 pool. See http://www.mchange.com/projects/c3p0/#maxPoolSize[c3p0 maxPoolSize]
|
`hibernate.c3p0.max_size` or `c3p0.maxPoolSize`:: The maximum size of the c3p0 pool. See http://www.mchange.com/projects/c3p0/#maxPoolSize[c3p0 maxPoolSize]
|
||||||
`hibernate.c3p0.timeout` or `c3p0.maxIdleTime`:: The Connection idle time. See http://www.mchange.com/projects/c3p0/#maxIdleTime[c3p0 maxIdleTime]
|
`hibernate.c3p0.timeout` or `c3p0.maxIdleTime`:: The Connection idle time. See http://www.mchange.com/projects/c3p0/#maxIdleTime[c3p0 maxIdleTime]
|
||||||
|
|
Loading…
Reference in New Issue