'Create axon tables to oracle specific schmea without autoconfigure datasource

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

@Configuration
@EnableTransactionManagement
@EnableJpaRepositories(
entityManagerFactoryRef = “myEntityManagerFactory”,
transactionManagerRef = “myTransactionManager”,
basePackages = {
“org.axonframework.eventsourcing.eventstore.jpa”,
“org.axonframework.eventhandling.tokenstore.jpa”,
“org.axonframework.modelling.saga.repository.jpa”
}
)
public class MyDBConfiguration {

@Bean(name = "myEntityManagerFactory")
@Primary
public LocalContainerEntityManagerFactoryBean
myManagerFactory(EntityManagerFactoryBuilder builder) {
LocalContainerEntityManagerFactoryBean em = builder
.dataSource(myDBDataSource())
.packages(

                         "com.myproject.mydemo.model.jpa.axon"


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source