-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Support for JPA entity listeners, including in native mode #20708
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I added a very minor comment. I agree we should wait for the ORM fix.
Can you make sure the tests are added after you made it work (it might just be GitHub order not being right)?
...rm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmAnnotations.java
Outdated
Show resolved
Hide resolved
f68a237
to
5407188
Compare
Thanks @gsmet , I addressed your comments. Let's wait for hibernate/hibernate-orm#4296 to get merged and released. |
7a14c80
to
487d19b
Compare
I forgot to address and test |
487d19b
to
2abb843
Compare
We've never needed that for attribute converters, since reflection for those is performed when building Metadata. We don't need it anymore for listeners once HHH-14869 gets fixed.
2abb843
to
b9893a5
Compare
This workflow status is outdated as a new workflow run has been triggered. |
Failing Jobs - Building b9893a5
Failures⚙️ Native Tests - Windows - hibernate-validator #- Failing: integration-tests/hibernate-validator
📦 integration-tests/hibernate-validator✖ |
The failure is on a native build of integration tests for Hibernate Validator on Windows. It's unrelated to this PR. Merging! |
Fixes #12740, #6948 (the two top issues of the Hibernate ORM extension at the moment, by number of votes).
Creating this PR as draft, since we will need hibernate/hibernate-orm#4296 to be merged and released upstream before we can merge this PR.
Alternatively, we could just drop the last commit, use reflection at runtime in the native application, and it would work without any change in Hibernate ORM. But that would have to be temporary; personally I'd rather wait until the next Hibernate ORM release, which shouldn't take too long anyway.