Hi I have 2 transactions which accepts same input as below.

insert/update to Table A (int ID) if above is success then insert to Table B (int ID)

If table B insert fails, the insert/updates to Table A should NOT roll back. But if insert/update to table A fails, insert to table B should not happen.

How do I achieve with @transactional propagation & isolation levels?

Thanks Swapna R

Comment From: wilkinsona

This looks to be a duplicate of https://github.com/spring-projects/spring-boot/issues/21430, just without the mention of MyBatis. As with #21430, this isn't the right place for this sort of thing. It feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.