-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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 Hibernate 5.3's ManagedBeanRegistry for dependency injection [SPR-16305] #20852
Comments
Chris Cranford commented I would not mind supplying a PR to enable this feature for Spring; however, I wanted to first open a dialog about how Spring would like to see this implemented. Currently, implementations can supply Hibernate with a service loader extension point, a Ideally I would prefer to develop a solution that would work for all users who use Hibernate as a persistence layer, regardless of whether they're bootstrapping spring-orm with an Does this seem reasonable for you guys or is there another alternative you'd like for me to try and integrate this using? |
Juergen Hoeller commented For a start, Spring's
As per #21540, an emerging strategy for specific Hibernate JPA support seems to be |
Juergen Hoeller commented
Next to the above-mentioned support in native Hibernate |
Chris Cranford commented Juergen Hoeller, thanks for the effort to get this support in. I'm sure users of both our communities will be thrilled. |
The issue is still present when you annotate your converter with
|
@Dragas, can you please open a new issue to address your concerns? |
Chris Cranford opened SPR-16305 and commented
Hibernate 5.3 introduces a new service contract called
ManagedBeanRegistry
.https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/resource/beans/spi/ManagedBeanRegistry.java
This service contract would enable users of Spring to define Spring managed beans for various persistence objects such as Attribute Converters, Event Listeners, and Revision Listeners allowing Hibernate to lookup and use those beans as needed.
Issue Links:
Referenced from: commits 620e83c, c0d4cb5
2 votes, 4 watchers
The text was updated successfully, but these errors were encountered: