Package org.hibernate.usertype
Class UserTypeLegacyBridge
- All Implemented Interfaces:
TypeConfigurationAware,ParameterizedType,UserType<Object>
public class UserTypeLegacyBridge
extends BaseUserTypeSupport<Object>
implements ParameterizedType, TypeConfigurationAware
Convenience
UserType implementation which mimics the legacy @Type
annotation which was based on the hbm.xml mapping's string-based type support.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidresolve(BiConsumer resolutionConsumer) voidsetParameterValues(Properties parameters) Gets called by Hibernate to pass the configured type parameters to the implementation.voidsetTypeConfiguration(TypeConfiguration typeConfiguration) Methods inherited from class org.hibernate.usertype.BaseUserTypeSupport
assemble, deepCopy, disassemble, equals, getSqlType, hashCode, isMutable, javaType, jdbcType, nullSafeGet, nullSafeSet, returnedClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.usertype.UserType
getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getValueConverter, isComparable, nullSafeGet, nullSafeSet, replace
-
Field Details
-
TYPE_NAME_PARAM_KEY
- See Also:
-
-
Constructor Details
-
UserTypeLegacyBridge
public UserTypeLegacyBridge() -
UserTypeLegacyBridge
-
-
Method Details
-
getTypeConfiguration
- Specified by:
getTypeConfigurationin interfaceTypeConfigurationAware
-
setTypeConfiguration
- Specified by:
setTypeConfigurationin interfaceTypeConfigurationAware
-
setParameterValues
Description copied from interface:ParameterizedTypeGets called by Hibernate to pass the configured type parameters to the implementation.- Specified by:
setParameterValuesin interfaceParameterizedType
-
resolve
- Specified by:
resolvein classBaseUserTypeSupport<Object>
-