Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/921 read hibernate config from application properties #968

Conversation

clean-coder
Copy link
Collaborator

@clean-coder clean-coder commented Jul 10, 2024

  • Hibernate Configs werden als Properties aus den applicationX.properties gelesen. HibernateContext cached die Settings (in einer statischen Variablen)
  • SchemaMultiTenantConnectionProvider ist neu nicht mehr abstrakt. Die Hibernate Properties werden via HibernateContext.getHibernateConfig() geholt. Daher gibt es keine spezielle Implementierung mehr für Postgres oder H2. Auch die speziellen Postgres/H2 Properties Files fallen weg.
  • Für Integration Tests, werden die Hibernate (H2) Properties im Setup (vor der Ausführung der eigentlichen Tests) in TestContextInitializer via HibernateContext.cacheHibernateProperties() gesetzt.
  • Beim starten der Okr Applikation werden die Hibernate (Postgres) Properties im OkrApplicationContextInitializer auch
    via HibernateContext.cacheHibernateProperties() gesetzt.
  • Vorsicht: es haben sich Properties in den applicationX.properties geändert

@janikEndtner janikEndtner changed the base branch from main to multitenancy_main July 10, 2024 11:12
@janikEndtner janikEndtner merged commit c3ece77 into multitenancy_main Jul 10, 2024
5 checks passed
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