Skip to content

Commit

Permalink
Merge pull request #29981 from gsmet/hr-timezone
Browse files Browse the repository at this point in the history
Pass missing properties to Hibernate Reactive startup
  • Loading branch information
geoand authored Dec 23, 2022
2 parents 6d6d632 + aab1831 commit 6776f0d
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 6776f0d

Please sign in to comment.