Class UuidToStringUserType
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.usertype.ImmutableUserType<UUID>
ch.tocco.nice2.persist.core.impl.hibernate.usertype.UuidToStringUserType
- All Implemented Interfaces:
org.hibernate.usertype.UserType
UserType
which saves UUID
objects as varchar (instead of a native uuid type).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected UUID
get
(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) protected void
set
(PreparedStatement st, UUID value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) int[]
sqlTypes()
Methods inherited from class ch.tocco.nice2.persist.core.api.hibernate.usertype.ImmutableUserType
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass
-
Constructor Details
-
UuidToStringUserType
public UuidToStringUserType()
-
-
Method Details
-
sqlTypes
public int[] sqlTypes()