-
Notifications
You must be signed in to change notification settings - Fork 32
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
Lifecycle CDI Event #373
Comments
It's an appealing idea to use the CDI event bus for this, actually. Definitely worth considering in future. [But I doubt it's a priority for 1.0.] |
I have now received a few requests for this. I think it would be extremely straightforward to define event types corresponding to our lifecycle operations, e.g. |
see jakartaee#373 Signed-off-by: Gavin King <gavin@hibernate.org>
see jakartaee#373 Signed-off-by: Gavin King <gavin@hibernate.org>
Reopen this because we will still need to add TCK tests for the function. |
I think I'll take a crack at implementing this tonight, make sure it actually works... |
Just implemented it. Works beautifully. Love it. |
Like the JPA event listener and do side effect by annotations
@Save
,@Merge
, etc(till now I do not know well about the purpose of these annotations).Spring Data provides a collection of
XXXCallback
when converting/saving/updating/delete an entity object.In Jakarta Data, we can introduce CDI Event instead, make it compatible with all implementation modules.
It is more freely for developers.
The text was updated successfully, but these errors were encountered: