HHH-7447 ValueHolder used in NaturalIdCacheKey is not Serializable

This commit is contained in:
Strong Liu 2012-07-12 22:38:39 +08:00
parent e76830ade0
commit 9324c7ab1e
1 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@
* Boston, MA 02110-1301 USA
*/
package org.hibernate.internal.util;
import java.io.Serializable;
/**
* Represents a "final" value that is initialized either {@link #ValueHolder(Object) up front} or once at some point
@ -29,14 +30,14 @@ package org.hibernate.internal.util;
*
* @author Steve Ebersole
*/
public class ValueHolder<T> {
public class ValueHolder<T> implements Serializable {
/**
* The snippet that generates the initialization value.
*
* @param <T>
*/
public static interface DeferredInitializer<T> {
public static interface DeferredInitializer<T> extends Serializable {
/**
* Build the initialization value.
* <p/>