Re: JPA DN5.2.0: fail to rollback on RuntimeException on PrePersist, PreUpdate


Better option would be to trap any RuntimeException from user callbacks, and rethrow as a NucleusUserCallbackException (or some name like that), with the RuntimeException nested inside it. Then "throwException" can check for NucleusUserCallbackException.

You can always provide a Pull Request.

Join to automatically receive all group messages.