Topic: Using Exposed and JPA in parallel Hello eve...
# exposed
t
Topic: Using Exposed and JPA in parallel Hello everyone, since a couple of days I am struggling to get Exposed to work in one of our larger Spring Boot projects, where we are currently using JPA / Hibernate. Currently, we are looking into partially replacing JPA with Exposed. During the migration phase, we want to use both in parallel, that means: Using a JPA repository and a repository implemented with Exposed within the same transaction. Our default transaction manager is the
JpaTransactionManager
. I tried to just replace it with the
SpringTransactionManager
from Exposed, which did not work. I get both working in parallel, however then, transactions by Exposed are not rolled back at the end of the tests (Kotest + SpringListener), because they only affect the transaction manager with the bean name
transactionManager
AFAIK. How can I configure Exposed and JPA to use the same transaction manager? 🙂 Thanks! 😊