Skip to content

@Transactional in Spring Mybatis #21430

@SwapnaRavi21

Description

@SwapnaRavi21

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions