Class TextArrayUserType
- java.lang.Object
-
- org.kiwiproject.hibernate.usertype.AbstractArrayUserType
-
- org.kiwiproject.hibernate.usertype.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[]orVARCHAR[], mapping to the Java typeString[].
-
-
Constructor Summary
Constructors Constructor Description TextArrayUserType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdatabaseTypeName()Implementors should return the specific database type name that the array contains, e.g.ClassreturnedClass()-
Methods inherited from class org.kiwiproject.hibernate.usertype.AbstractArrayUserType
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, sqlTypes
-
-
-
-
Method Detail
-
databaseTypeName
public String databaseTypeName()
Description copied from class:AbstractArrayUserTypeImplementors should return the specific database type name that the array contains, e.g.TEXTif the database array type isTEXT[].- Specified by:
databaseTypeNamein classAbstractArrayUserType- 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
-
-