Skip to content

Commit

Permalink
Pass missing properties to Hibernate Reactive startup
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Dec 20, 2022
1 parent 1079861 commit aab1831
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ private static ParsedPersistenceXmlDescriptor generateReactivePersistenceUnit(
String.valueOf(persistenceUnitConfig.query.inClauseParameterPadding));

// JDBC
persistenceUnitConfig.jdbc.timezone.ifPresent(
timezone -> desc.getProperties().setProperty(AvailableSettings.JDBC_TIME_ZONE, timezone));

persistenceUnitConfig.jdbc.statementFetchSize.ifPresent(
fetchSize -> desc.getProperties().setProperty(AvailableSettings.STATEMENT_FETCH_SIZE,
String.valueOf(fetchSize)));

persistenceUnitConfig.jdbc.statementBatchSize.ifPresent(
statementBatchSize -> desc.getProperties().setProperty(AvailableSettings.STATEMENT_BATCH_SIZE,
String.valueOf(statementBatchSize)));
Expand Down

0 comments on commit aab1831

Please sign in to comment.