public class EnumType
extends org.hibernate.type.EnumType
EnumType so as to
override methods responsible for cached representation
of enums in hibernate.
This class must be used in place of EnumType
in client-server topology when the application classes are
not available on the server.
e.g. a typical enum configuration should look like this:
<property name="myEnum">
<type name="com.gemstone.gemfire.modules.hibernate.EnumType">
<param name="enumClass">com.mycompany.MyEntity$MyEnum</param>
<param name="type">12</param>
</type>
</property>
| Constructor and Description |
|---|
EnumType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
assemble(java.io.Serializable cached,
java.lang.Object owner) |
java.io.Serializable |
disassemble(java.lang.Object value) |
public java.lang.Object assemble(java.io.Serializable cached,
java.lang.Object owner)
throws org.hibernate.HibernateException
assemble in interface org.hibernate.usertype.UserTypeassemble in class org.hibernate.type.EnumTypeorg.hibernate.HibernateExceptionpublic java.io.Serializable disassemble(java.lang.Object value)
throws org.hibernate.HibernateException
disassemble in interface org.hibernate.usertype.UserTypedisassemble in class org.hibernate.type.EnumTypeorg.hibernate.HibernateException