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

Add support for javax.persistence EntityListener #394

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

iweinzierl
Copy link

  • added class EntityListenerManager that parses entity listeners by searching for @EntittyListeners annotation
  • added class EntityListenerMeta to store meta information (entity listeners, methods that shall be invoked after pre/post save and pre/post remove) about EntityListeners in class EntityListenerManager
  • notify EntityListenerManager before and after entities are saved and removed

@sibelius
Copy link
Contributor

sibelius commented Dec 2, 2015

@iweinzierl don't you think it is easier to override save, update or delete methods on subclasses then have listener for pre and post operations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants