Vlad Mihalcea (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZTViOWQyYThm...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-14020?atlOrigin=eyJpIjoiZTViOW...
) HHH-14020 (
https://hibernate.atlassian.net/browse/HHH-14020?atlOrigin=eyJpIjoiZTViOW...
) Allow Hibernate Types to have access to SessionFactoryImplementor during initialization
(
https://hibernate.atlassian.net/browse/HHH-14020?atlOrigin=eyJpIjoiZTViOW...
)
Issue Type: Improvement Affects Versions: 5.4.15 Assignee: Unassigned Components:
hibernate-core Created: 15/May/2020 01:33 AM Fix Versions: 5.4.16 Priority: Major
Reporter: Vlad Mihalcea (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
HHH-13103 (
https://hibernate.atlassian.net/browse/HHH-13103 ) added support for getting
access to configuration properties when instantiating a Hibernate Type.
However, there are still two issues I'm facing in the [Hibernate Types project] (
https://github.com/vladmihalcea/hibernate-types):
* the new TypeBootstrapContext only works from 5.4.13 onwards, so if I add this
constructor, any prior Hibernate version will fail with a NoClassDeffFoundError.
* I need to get access to the underlying Driver Type to adjust how a certain Type handles
arrays, for instance.
For this reason, I propose we inject the SessionFactoryImplementor when initializing the
Type if there is a matching constructor taking this argument.
(
https://hibernate.atlassian.net/browse/HHH-14020#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14020#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:acdbdcc )