public class

SerializableType

extends AbstractSingleColumnStandardBasicType<T>
java.lang.Object
   ↳ org.hibernate.type.AbstractStandardBasicType<T>
     ↳ org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
       ↳ org.hibernate.type.SerializableType<T extends java.io.Serializable>

Class Overview

A type that maps between a VARBINARY and Serializable classes.

Notice specifically the 2 forms:

The important distinction has to do with locating the appropriate ClassLoader to use during deserialization. In the fist form we are always using the ClassLoader of the JVM (Hibernate will always fallback to trying its classloader as well). The second form is better at targeting the needed ClassLoader actually needed.

Summary

Fields
public static final SerializableType<Serializable> INSTANCE
Public Constructors
SerializableType(Class<T> serializableClass)
Public Methods
String getName()
[Expand]
Inherited Methods
From class org.hibernate.type.AbstractSingleColumnStandardBasicType
From class org.hibernate.type.AbstractStandardBasicType
From class java.lang.Object
From interface org.hibernate.type.BasicType
From interface org.hibernate.type.SingleColumnType
From interface org.hibernate.type.StringRepresentableType
From interface org.hibernate.type.Type
From interface org.hibernate.type.XmlRepresentableType

Fields

public static final SerializableType<Serializable> INSTANCE

Public Constructors

public SerializableType (Class<T> serializableClass)

Public Methods

public String getName ()