You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neither property appears in Intellij Idea's completion suggestions, which suggests to me they're not defined when Spring Data JPA is in use.
Also, when I try to put Spring Modulith's tables inside a custom database schema named modulith and set spring.modulith.events.jdbc.schema to that value, I see this error:
which likewise suggests that Spring Modulith is not using the defined schema value i.e. it's still looking in the public schema rather than the intended modulith schema.
The text was updated successfully, but these errors were encountered:
That's correct, as our JPA integration ends at the JPA level and all database management is handled by your JPA provider or an alternative you configure. Thus, the spring.modulith.events.jdbc properties are only applied if the spring-modulith-events-jdbc module is used.
odrotbohm
changed the title
spring.modulith.events.jdbc.* and JPA
Improve documentation to reveal which artifact provides which configuration property
Apr 29, 2025
Thanks @odrotbohm . I'm mainly interested in being able to define a custom schema where the event_publication and event_publication_archive tables will live. Is there a way to configure Spring Modulith to use a custom schema when using JPA?
You'd need to use the configuration options of your JPA provider (Hibernate?) to achieve that. Note that you can also use the spring-modulith-events-jdbc module with an application that uses JPA as primary persistence mechanism.
I'm using Spring Modulith 1.3.5 with Spring Data JPA and postgresql 16. I'm seeing issues with these two settings:
spring.modulith.events.jdbc.schema-initialization.enabled
spring.modulith.events.jdbc.schema
Neither property appears in Intellij Idea's completion suggestions, which suggests to me they're not defined when Spring Data JPA is in use.
Also, when I try to put Spring Modulith's tables inside a custom database schema named
modulith
and setspring.modulith.events.jdbc.schema
to that value, I see this error:which likewise suggests that Spring Modulith is not using the defined schema value i.e. it's still looking in the
public
schema rather than the intendedmodulith
schema.The text was updated successfully, but these errors were encountered: