-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add documentation on how to use the @EntityListeners annotation #163
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
Conversation
I was trying out the auditing support, but I did not get it working from the documentation alone. Luckily, I found http://www.petrikainulainen.net/programming/spring-framework/spring-data-jpa-tutorial-auditing-part-one/ that explained I neede the `@EntityListeners` annotation (I am not using an `orm.xml`). I think it would be good to add this to the official docs as well.
…annotation to enable auditing. Added instructions to the reference documentation on how to register the AuditingEntityListener using JPA's @EntityListeners annotation. Original pull request: #163.
Original pull request: #163.
…annotation to enable auditing. Added instructions to the reference documentation on how to register the AuditingEntityListener using JPA's @EntityListeners annotation. Original pull request: #163.
Original pull request: #163.
…annotation to enable auditing. Added instructions to the reference documentation on how to register the AuditingEntityListener using JPA's @EntityListeners annotation. Original pull request: #163.
Original pull request: #163.
That's merged, thanks! |
I have an audit interceptor very similar to this : http://www.mkyong.com/hibernate/hibernate-interceptor-example-audit-log/ Whenever i do in my service method:
But when i use a query from whithin the respository like so:
I always thought that since spring-boot-jpa supports @query, it definitely supports auditing. However, the reality is very bad. The official documentation is not clear enough, so I have dug a big pit.,because my project is nearing the end, only to find this problem, so it is impossible to switch other ways, do not know how to solve it, or alternatives,I hope everyone can help me, I will wait for results online. |
@wimdeblauwe Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@wimdeblauwe Thank you for signing the Contributor License Agreement! |
@halower I suggest to ask this kind of question on StackOverflow as your comment is not directly related to this PR. |
I was trying out the auditing support, but I did not get it working from the documentation alone. Luckily, I found http://www.petrikainulainen.net/programming/spring-framework/spring-data-jpa-tutorial-auditing-part-one/ that explained I neede the
@EntityListeners
annotation (I am not using anorm.xml
). I think it would be good to add this to the official docs as well.