Hi I want to use axon framework with oracle.For that reason I manually created tables in oracle like myschema.TOKEN_ENTRY,myschema.SAGA_ENTRY etc
For some reason I cant use spring autoconfigure database option,How can I establish relation between axon jpa and entities,should I create manuelly SAGA_ENTRY entity in my code or something else
Myconfiguration like that in spring code
Are you using Spring Boot? I would assume so.
In that case, you can probably just configure it on your application.yml (or properties).
I haven’t tried myself but something like this should work!
hibernate.dialect=org.hibernate.dialect.Oracle12cDialect
spring.jpa.hibernate.ddl-auto=create #or update or any other option
spring.jpa.generate-ddl=true
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
spring.datasource.driver.class=oracle.jdbc.driver.OracleDriver
Hi Lucas ,You are right it works when you like that but due to some reason,I cant work like that.
I have to manually configure datasource and I have to add axon tables to specific schemas.How can I achive that ?
Hi, the following works for developing on development system. But need to take this to production environment were mentioning auto create isn’t going to work. Is there a workaround?
If you can run it locally, with an auto created schema, you can than copy that schema for other instances. At least that’s how I worked around something similar earlier.