Allow Hibernate Types to get access to the current configuration properties using constructor injection

Description

The only way to configure a Hibernate Type is to pass the parameters via DynamicParameterizedType. However, we only get access to the currently annotated properties, not the ones provided via the SessionFactory.

Especially for custom Types, it's worth getting access to the bootstrap properties so that user can configure the application using a single mechanism which propagates the current settings to both Hibernate ORM core and type extensions.

Environment

None

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure