Skip to content

Conversation

plchldr
Copy link
Contributor

@plchldr plchldr commented Jul 9, 2025

I'm not sure whether we're doing something wrong, but HapiEntityManagerFactoryUtil.newEntityManagerFactory(ConfigurableListableBeanFactory, FhirContext, JpaStorageSettings) requires JpaStorageSettings built in FhirJpaStorageSettingsConfiguration, leading to the construction of the configuration requiring the EntityManagerFactory that is currently being constructed by HapiEntityManagerFactoryUtil. So it's a dependency circle and Spring Boot aborts.

Our current workaround is duplicating the FhirJpaStorageSettingsConfiguration::storageSettings method - so no big deal, but this seems cleaner either way.

@robogary
Copy link
Contributor

robogary commented Jul 9, 2025

Formatting check succeeded!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants