HHH-3623: collectin proxies are serializable

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15614 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Adam Warski 2008-11-25 15:23:40 +00:00
parent 266fbedbd3
commit 0e8bdf990b
5 changed files with 20 additions and 5 deletions

View File

@ -26,11 +26,14 @@ package org.hibernate.envers.entities.mapper.relation.lazy.proxy;
import java.util.Collection;
import java.util.List;
import java.util.ListIterator;
import java.io.Serializable;
/**
* @author Adam Warski (adam at warski dot org)
*/
public class ListProxy<U> extends CollectionProxy<U, List<U>> implements List<U> {
public class ListProxy<U> extends CollectionProxy<U, List<U>> implements List<U>, Serializable {
private static final long serialVersionUID = -5479232938279790987L;
public ListProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<List<U>> initializor) {
super(initializor);
}

View File

@ -26,13 +26,16 @@ package org.hibernate.envers.entities.mapper.relation.lazy.proxy;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.io.Serializable;
import org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor;
/**
* @author Adam Warski (adam at warski dot org)
*/
public class MapProxy<K, V> implements Map<K, V> {
public class MapProxy<K, V> implements Map<K, V>, Serializable {
private static final long serialVersionUID = 8418037541773074646L;
private Initializor<Map<K, V>> initializor;
protected Map<K, V> delegate;

View File

@ -24,11 +24,14 @@
package org.hibernate.envers.entities.mapper.relation.lazy.proxy;
import java.util.Set;
import java.io.Serializable;
/**
* @author Adam Warski (adam at warski dot org)
*/
public class SetProxy<U> extends CollectionProxy<U, Set<U>> implements Set<U> {
public class SetProxy<U> extends CollectionProxy<U, Set<U>> implements Set<U>, Serializable {
private static final long serialVersionUID = 131464133074137701L;
public SetProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<Set<U>> initializor) {
super(initializor);
}

View File

@ -28,13 +28,16 @@ import java.util.Comparator;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
import java.io.Serializable;
import org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor;
/**
* @author Adam Warski (adam at warski dot org)
*/
public class SortedMapProxy<K, V> implements SortedMap<K, V> {
public class SortedMapProxy<K, V> implements SortedMap<K, V>, Serializable {
private static final long serialVersionUID = 2645817952901452375L;
private Initializor<SortedMap<K, V>> initializor;
protected SortedMap<K, V> delegate;

View File

@ -25,11 +25,14 @@ package org.hibernate.envers.entities.mapper.relation.lazy.proxy;
import java.util.Comparator;
import java.util.SortedSet;
import java.io.Serializable;
/**
* @author Adam Warski (adam at warski dot org)
*/
public class SortedSetProxy<U> extends CollectionProxy<U, SortedSet<U>> implements SortedSet<U> {
public class SortedSetProxy<U> extends CollectionProxy<U, SortedSet<U>> implements SortedSet<U>, Serializable {
private static final long serialVersionUID = 2092884107178125905L;
public SortedSetProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<SortedSet<U>> initializor) {
super(initializor);
}