Lightmin brakes the transaction handling of spring data jpa repositories
See original GitHub issueLightmin brakes the transaction handling of spring data jpa repositories. Per default spring data jpa repositories can be used directly and each method execution is wrapped with a correct transaction. As soon as one enabels Spring Batch Lightmin, the repository methods are not executed in a transaction anymore - or at least nothing is commited anymore.
Please see this example project: https://github.com/imod/lightmin-transaction - it contains a simple demo application which inserts some records to the database at startup (in com.example.demo.LightminTransactionApplication.demo(...)
.
The testcase fails as long as @EnableLightminEmbedded
and @EnableLightminJdbcConfigurationRepository
are enabled. as soon as these two annotations are commented/removed, the test case works find.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Hi @imod, I will have a detailed look into this via #55
Hi, please see my answer at #https://github.com/tuxdevelop/spring-batch-lightmin-samples/pull/5#issuecomment-758633246