Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1M2
-
None
Description
Add possibility to register global event listeners with a help of annotations.
Now Cayenne does nothing with listener's methods which have event annotations without specified entities. So we can use such no parameter annotations to register global callbacks.
Something like:
@PrePersist
public void onPrePersist(Object object) {
// global callback
}