Class TextArrayUserType

  • All Implemented Interfaces:
    org.hibernate.usertype.UserType

    public class TextArrayUserType
    extends AbstractArrayUserType
    A Hibernate user-defined type that maps to/from (Postgres) array column of a text type, e.g. TEXT[] or VARCHAR[], mapping to the Java type String[].
    • Constructor Detail

      • TextArrayUserType

        public TextArrayUserType()
    • Method Detail

      • databaseTypeName

        public String databaseTypeName()
        Description copied from class: AbstractArrayUserType
        Implementors should return the specific database type name that the array contains, e.g. TEXT if the database array type is TEXT[].
        Specified by:
        databaseTypeName in class AbstractArrayUserType
        Returns:
        always returns "text" even though the actual column type might be different, e.g. varchar
      • returnedClass

        public Class returnedClass()
        Returns:
        a class of type String array