You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to update Hibernate 5.3.7 and org.jadira.usertype.usertype.core 7.0.0.CR1 and facing following issue. => NoSuchMethodError: org.hibernate.type.TypeResolver: method ()V not found
The Problem I figured out:
AbstractHeuristicUserType uses new TypeResolver()
final AbstractSingleColumnStandardBasicType<? extends Object> heuristicType = (AbstractSingleColumnStandardBasicType<? extends Object>) new TypeResolver().heuristicType(identifierType.getName(), parameters);
if (heuristicType == null) {
throw new HibernateException("Unsupported identifier type " + identifierType.getName());
}
But TypeResolver in Hibernate 5.3.7 doesn't have no arguments constructor any more:
public TypeResolver(TypeConfiguration typeConfiguration, TypeFactory typeFactory){
this.typeConfiguration = typeConfiguration;
this.typeFactory = typeFactory;
}
// ATTENTION; CONSTRUCTOR COMMENTED OUT!
// public TypeResolver() {
// this( new BasicTypeRegistry(), new TypeFactory() );
// }
//