-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Open
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)status: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
Description
I would like to request a registrable, generic approach for functional declarative transaction management as an alternative to throwing exceptions, similar to how Vavr's Try type is currently supported.
Currently, Spring Framework provides special support for Vavr's Try type for declarative transaction management:
- Code reference: TransactionAspectSupport.java
- Documentation: Rolling Back a Declarative Transaction
While I prefer expressing failure states through types rather than throwing exceptions, I don't want to depend on Vavr. I would like to achieve similar transactional behavior using:
- My own custom
Trytype implementation - Other functional types that represent success/failure states like
Result<T, E>orEither<L, R>
Could we introduce a pluggable interface (similar to a VavrDelegate) that can be implemented and registered to handle custom functional types for transaction management?
Metadata
Metadata
Assignees
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)status: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on