Skip to content

Commit 617359f

Browse files
committed
add HibernatePersistenceConfiguration.jdbcPoolSize
1 parent 2487390 commit 617359f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

hibernate-core/src/main/java/org/hibernate/jpa/HibernatePersistenceConfiguration.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,16 @@ public HibernatePersistenceConfiguration jdbcCredentials(String username, String
156156
return this;
157157
}
158158

159+
/**
160+
* The JDBC connection pool size.
161+
*
162+
* @see JdbcSettings#POOL_SIZE
163+
*/
164+
public HibernatePersistenceConfiguration jdbcPoolSize(int poolSize) {
165+
property( JdbcSettings.POOL_SIZE, poolSize );
166+
return this;
167+
}
168+
159169
/**
160170
* Enables SQL logging to the console.
161171
* <p>

0 commit comments

Comments
 (0)