8000 Consider adding an event handler for the transaction rollback · Issue #2015 · hibernate/hibernate-reactive · GitHub
[go: up one dir, main page]

Skip to content
Consider adding an event handler for the transaction rollback #2015
Open
@alexpoletaev

Description

@alexpoletaev

Please consider adding a handler for the transaction rollback here, which will consume an exception and reactive session. This will allow to register observers for that event like it's possible for the before and after commit events. I'm using Quarkus with the hibernate reactive and I didn't find a way how to execute a peace of code (sending a Kafka message in my case) in case of transaction rollback for all the database entities. Also it would be great if those observers can be separated by the database operation events, something like INSERT_ROLLBACK, UPDATE_ROLLBACK, DELETE_ROLLBACK etc. Please let me know if I missed something and this is already implemented. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0