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<BasicJavaType<Object>, JdbcType> resolutionConsumer) voidsetParameterValues(Properties parameters) Called by Hibernate to pass the parameters specified in the XML mapping file or byType.parameters().voidsetTypeConfiguration(TypeConfiguration typeConfiguration) Methods inherited from class BaseUserTypeSupport
assemble, deepCopy, disassemble, equals, getSqlType, hashCode, isMutable, javaType, jdbcType, nullSafeGet, nullSafeSet, returnedClassMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UserType
getDefaultSqlLength, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultSqlScale, 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:ParameterizedTypeCalled by Hibernate to pass the parameters specified in the XML mapping file or byType.parameters().- Specified by:
setParameterValuesin interfaceParameterizedType
-
resolve
- Specified by:
resolvein classBaseUserTypeSupport<Object>
-