We're updating the issue view to help you get more done. 

C3P0 initialPoolSize non longer initialized with minPoolSize

Description

With hibernate 3.x, when hibernate.c3p0.min_size was set, it used to initialize both c3p0.minPoolSize and c3p0.initialPoolSize.
That allowed a pool to be inited with one connection only.

With hibernate 4.x, this no longer works. Thus, c3p0.initialPoolSize gets its default value, which is 3 and we get a pool with a minimum of 3 connections.

A workaround consists of setting a "hibernate.c3p0.initialPoolSize" property but this is awkward because it is not among official hibernate.c3p0.* properties (which use underscore instead of camelCase names)

Environment

None

Status

Assignee

Brett Meyer

Reporter

Laurent RICHARD

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.1.7

Priority

Minor