So I'm a little confused regarding transaction man...
# spring
j
So I'm a little confused regarding transaction management in a WebFlux + Coroutine + Spring Data JPA + Hibernate Context. I understand I cannot use @Transactional annotation for suspend functions as it errors out, wanting me to
Use TransactionalOperator.transactional extensions instead
- which I can not as I do not have a reactional database system. So I tried two approaches: - wrap my suspending function in a TransactionTemplate.execute call - but I'm losing support for reactivity here as requires blocking operations - using dataSource.connection.commit() + rollback programmatically. I failed to get this to work. Even with defining JpaTransactionManager or HibernateTransactionManager bean. Are there any resources out there that I missed?