com.vladmihalcea.hibernate.type.basic.PostgreSQLEnumJdbcType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-types-60 Show documentation
Show all versions of hibernate-types-60 Show documentation
Hibernate ORM 6.0 extra Types
package com.vladmihalcea.hibernate.type.basic;
import org.hibernate.dialect.PostgreSQLPGObjectJdbcType;
import org.hibernate.type.SqlTypes;
/**
* Maps an {@link 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
*/
public class PostgreSQLEnumJdbcType extends PostgreSQLPGObjectJdbcType {
public PostgreSQLEnumJdbcType(String enumClass) {
super(enumClass, SqlTypes.OTHER);
}
}