Skip to content

Commit

Permalink
Set hibernate.cdi.extensions (for SpringBeanContainer on Hibernate 6.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller authored and mdeinum committed Jun 29, 2023
1 parent b6251a2 commit 7f9fe61
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ private Map<String, Object> buildJpaPropertyMap(boolean connectionReleaseOnClose
PhysicalConnectionHandlingMode.DELAYED_ACQUISITION_AND_HOLD);
}

// For SpringBeanContainer to be called on Hibernate 6.2
jpaProperties.put("hibernate.cdi.extensions", "true");

return jpaProperties;
}

Expand Down

0 comments on commit 7f9fe61

Please sign in to comment.