-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow entities to declare listeners that'll be invoked during lifecycle. This allows to perform consistency checks in a more reliable way than overriding repository save() method as listeners are called even in case of cascading persist. Annotation has been modified to allow avoiding imports since for @EntityListeners we need to pass .class which doesn't play well with autoimport. Alternative would have been to import and append '.class' to annotation param by the mean of another boolean parameter.
- Loading branch information
Sébastien Le Ray
committed
Apr 9, 2018
1 parent
6f84823
commit 36c9e28
Showing
3 changed files
with
57 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters