Open parthgupta0912 opened 1 year ago
@parthgupta0912 have you tried adding following dependency?
<!-- https://mvnrepository.com/artifact/org.springframework.statemachine/spring-statemachine-data-jpa -->
<dependency>
<groupId>org.springframework.statemachine</groupId>
<artifactId>spring-statemachine-data-jpa</artifactId>
<version>4.0.0</version>
</dependency>
I would like my state machine db schema to be automatically created. I have add the Spring state machine JPA auto-configuration as a dependency and added the
@EnableAutoConfiguration
annotation as well. The JPA repositories have been enabled and even the entity scan is happening on the correct package. Ideally this should enable all the default repositories and entities used for persisting states, transitions etc.These properties have also been set in application.properties.
However, the tables are not getting created when I start my application.
If it is not possible to create these tables on auto configuration, can someone help me with the sql scripts. I could not find these schemas in the documentation.
Thanks!