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 entity listeners #393

Open
iweinzierl opened this issue Oct 1, 2015 · 0 comments
Open

Add support for javax.persistence entity listeners #393

iweinzierl opened this issue Oct 1, 2015 · 0 comments
Labels

Comments

@iweinzierl
Copy link

I'd appreciate adding support for entity listeners like these via annotation:

  • PrePersist
  • PreUpdate
  • PreRemove
  • PostPersist
  • PostUpdate
  • PostRemove

An example could look like:

public class BookTitleValidator {
    @PrePersist
    public void validate(Book book) {
        // do validation magic
    }
}

@EntityListeners({ BookTitleValidator.class })
public class Book {
}
@iweinzierl iweinzierl changed the title Add support for entity listeners Add support for javax.persistence entity listeners Oct 1, 2015
iweinzierl added a commit to iweinzierl/sugar that referenced this issue Oct 3, 2015
iweinzierl added a commit to iweinzierl/sugar that referenced this issue Oct 3, 2015
iweinzierl added a commit to iweinzierl/sugar that referenced this issue Oct 3, 2015
iweinzierl added a commit to iweinzierl/sugar that referenced this issue Oct 3, 2015
iweinzierl added a commit to iweinzierl/sugar that referenced this issue Oct 3, 2015
iweinzierl added a commit to iweinzierl/sugar that referenced this issue Oct 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants