Class PostgreSQLEnumType
java.lang.Object
io.hypersistence.utils.hibernate.type.ImmutableType<T>
io.hypersistence.utils.hibernate.type.ImmutableDynamicParameterizedType<Enum>
io.hypersistence.utils.hibernate.type.basic.PostgreSQLEnumType
- All Implemented Interfaces:
Serializable,org.hibernate.type.Type,org.hibernate.usertype.DynamicParameterizedType,org.hibernate.usertype.EnhancedUserType<Enum>,org.hibernate.usertype.ParameterizedType,org.hibernate.usertype.UserType<Enum>
Deprecated.
Hibernate 6.3 includes support for PostgreSQL enums with the PostgreSQLEnumJdbcType
Maps an
Enum to a PostgreSQL ENUM column type.
For more details about how to use it, check out this article on vladmihalcea.com.
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.usertype.DynamicParameterizedType
org.hibernate.usertype.DynamicParameterizedType.ParameterType -
Field Summary
FieldsFields inherited from interface org.hibernate.usertype.DynamicParameterizedType
ACCESS_TYPE, ENTITY, IS_DYNAMIC, IS_PRIMARY_KEY, PARAMETER_TYPE, PROPERTY, RETURNED_CLASS, XPROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromStringValue(CharSequence charSequence) Deprecated.protected Enumget(ResultSet rs, int position, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) Deprecated.Get the column value from the JDBCResultSet.intDeprecated.Deprecated.protected voidset(PreparedStatement st, Enum value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) Deprecated.Set the column value on the provided JDBCPreparedStatement.voidsetParameterValues(Properties parameters) Deprecated.Methods inherited from class io.hypersistence.utils.hibernate.type.ImmutableDynamicParameterizedType
toSqlLiteral, toStringMethods inherited from class io.hypersistence.utils.hibernate.type.ImmutableType
assemble, assemble, beforeAssemble, compare, deepCopy, deepCopy, disassemble, disassemble, equals, getColumnSpan, getConfiguration, getHashCode, getHashCode, getName, getReturnedClass, getSqlTypeCodes, hashCode, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, replace, toColumnNullness, toLoggableStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.type.Type
disassembleMethods inherited from interface org.hibernate.usertype.UserType
assemble, deepCopy, disassemble, equals, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getValueConverter, hashCode, isMutable, nullSafeGet, nullSafeSet, replace
-
Field Details
-
INSTANCE
Deprecated.
-
-
Constructor Details
-
PostgreSQLEnumType
public PostgreSQLEnumType()Deprecated.
-
-
Method Details
-
setParameterValues
Deprecated. -
returnedClass
Deprecated.- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType<Enum>- Overrides:
returnedClassin classImmutableType<Enum>
-
getSqlType
public int getSqlType()Deprecated. -
fromStringValue
Deprecated.- Throws:
org.hibernate.HibernateException
-