Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create annotation to rollback exception by default #232

Closed
hfluz opened this issue Aug 18, 2021 · 1 comment
Closed

Create annotation to rollback exception by default #232

hfluz opened this issue Aug 18, 2021 · 1 comment
Assignees

Comments

@hfluz
Copy link

hfluz commented Aug 18, 2021

Nowadays, if I want to rollback when a checked exception happens, I have to set the rollbackFor everytime on the @Transactional annotation.

It would be nice if we could do something similar to EJB transactions, like:

@ApplicationException(
    rollback = true
)
public class BusinessException extends Exception implements Serializable {
@hazendaz
Copy link
Member

hazendaz commented Apr 2, 2023

Its possible that something like this may make sense with Jakarta which we just moved to given EJB is dead effectively. Since no one else has commented on such a need, I'm closing for now. If this still matters for you, best option would be to try to write up a solution and submit a PR. Do note, for now I do not plan to directly cut even support line for javax given I have no time to maintain that and this has been highly stable for some time otherwise. If you do come up with something, do open an issue so that I know to open a support line if it needs on javax. Otherwise, just note that master is jakarta and support is generally focused there.

@hazendaz hazendaz closed this as completed Apr 2, 2023
@hazendaz hazendaz self-assigned this Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants