HHH-12577 - Remove unnecessary warning for AttributeConverter implementations.

This commit is contained in:
Chris Cranford 2018-05-22 11:08:53 -04:00
parent 1a91a38cbd
commit a37960a23d
1 changed files with 11 additions and 7 deletions

View File

@ -9,6 +9,8 @@ package org.hibernate.type.descriptor.java;
import java.io.Serializable;
import java.util.concurrent.ConcurrentHashMap;
import javax.persistence.AttributeConverter;
import org.hibernate.HibernateException;
import org.hibernate.annotations.Immutable;
import org.hibernate.internal.CoreLogging;
@ -121,6 +123,7 @@ public class JavaTypeDescriptorRegistry implements Serializable {
return new SerializableTypeDescriptor( cls );
}
if ( !AttributeConverter.class.isAssignableFrom( cls ) ) {
log.debugf(
"Could not find matching JavaTypeDescriptor for requested Java class [%s]; using fallback. " +
"This means Hibernate does not know how to perform certain basic operations in relation to this Java type." +
@ -128,6 +131,7 @@ public class JavaTypeDescriptorRegistry implements Serializable {
cls.getName()
);
checkEqualsAndHashCode( cls );
}
return new FallbackJavaTypeDescriptor<>( cls );
}