With Hibernate 5.x we used code similar to the following in order to create a TypedParameterValue
Class<?> someType = //
Session session = //
TypeHelper typeHelper = session.getSessionFactory().getTypeHelper();
Type type = typeHelper.basic(someType);
return new TypedParameterValue(type, null);
With Hibernate 6 getTypeHelper
is gone from the SessionFactory
.
What is the appropriate way to get a TypedParameterValue
with Hibernate 6?
This answer suggests that the getTypeHelper
route is the intended one for Hibernate 6, which is "funny" since it doesn't exist any more.