Class TextArrayUserType

java.lang.Object
org.kiwiproject.hibernate.usertype.AbstractArrayUserType<String[]>
org.kiwiproject.hibernate.usertype.TextArrayUserType
All Implemented Interfaces:
org.hibernate.usertype.UserType<String[]>

@Deprecated(since="3.4.0", forRemoval=true) @KiwiDeprecated(removeAt="4.0.0", replacedBy="Native array support in Hibernate", usageSeverity=SEVERE, reference="https://github.com/kiwiproject/kiwi/issues/1117") public class TextArrayUserType extends AbstractArrayUserType<String[]>
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by native arrary support in Hibernate
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 Details

    • TextArrayUserType

      public TextArrayUserType()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • databaseTypeName

      public String databaseTypeName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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<String[]>
      Returns:
      always returns "text" even though the actual column type might be different, e.g. varchar
    • returnedClass

      public Class<String[]> returnedClass()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      a class of type String array