Skip to content

TypeBootstrapContext constructor not called in custom types with Hibernate 6 #30924

@z0mb1ek

Description

@z0mb1ek

I use spring-orm with hypersistence-utils for additional types. There is class JsonBinaryType that has constructor:

JsonBinaryType(org.hibernate.type.spi.TypeBootstrapContext typeBootstrapContext)

The documentation says that If a custom Type defines a constructor which takes the TypeBootstrapContext argument, Hibernate will use this instead of the default constructor. But there is call on default contructor and it is not working.

I tested version 6.0.9 - it works, but 6.0.10 and 6.0.11 does not. Is it a bug?

relates to vladmihalcea/hypersistence-utils#644

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: feedback-providedFeedback has been providedtype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions