HHH-3623: collectin proxies are serializable
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15615 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
0e8bdf990b
commit
e2ae25a9a9
|
@ -35,6 +35,9 @@ public abstract class CollectionProxy<U, T extends Collection<U>> implements Col
|
||||||
private org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<T> initializor;
|
private org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<T> initializor;
|
||||||
protected T delegate;
|
protected T delegate;
|
||||||
|
|
||||||
|
protected CollectionProxy() {
|
||||||
|
}
|
||||||
|
|
||||||
public CollectionProxy(Initializor<T> initializor) {
|
public CollectionProxy(Initializor<T> initializor) {
|
||||||
this.initializor = initializor;
|
this.initializor = initializor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.envers.entities.mapper.relation.lazy.proxy;
|
package org.hibernate.envers.entities.mapper.relation.lazy.proxy;
|
||||||
|
|
||||||
|
import org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.ListIterator;
|
import java.util.ListIterator;
|
||||||
|
@ -34,6 +36,9 @@ import java.io.Serializable;
|
||||||
public class ListProxy<U> extends CollectionProxy<U, List<U>> implements List<U>, Serializable {
|
public class ListProxy<U> extends CollectionProxy<U, List<U>> implements List<U>, Serializable {
|
||||||
private static final long serialVersionUID = -5479232938279790987L;
|
private static final long serialVersionUID = -5479232938279790987L;
|
||||||
|
|
||||||
|
public ListProxy() {
|
||||||
|
}
|
||||||
|
|
||||||
public ListProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<List<U>> initializor) {
|
public ListProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<List<U>> initializor) {
|
||||||
super(initializor);
|
super(initializor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,9 @@ public class MapProxy<K, V> implements Map<K, V>, Serializable {
|
||||||
private Initializor<Map<K, V>> initializor;
|
private Initializor<Map<K, V>> initializor;
|
||||||
protected Map<K, V> delegate;
|
protected Map<K, V> delegate;
|
||||||
|
|
||||||
|
public MapProxy() {
|
||||||
|
}
|
||||||
|
|
||||||
public MapProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<Map<K, V>> initializor) {
|
public MapProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<Map<K, V>> initializor) {
|
||||||
this.initializor = initializor;
|
this.initializor = initializor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,9 @@ import java.io.Serializable;
|
||||||
public class SetProxy<U> extends CollectionProxy<U, Set<U>> implements Set<U>, Serializable {
|
public class SetProxy<U> extends CollectionProxy<U, Set<U>> implements Set<U>, Serializable {
|
||||||
private static final long serialVersionUID = 131464133074137701L;
|
private static final long serialVersionUID = 131464133074137701L;
|
||||||
|
|
||||||
|
public SetProxy() {
|
||||||
|
}
|
||||||
|
|
||||||
public SetProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<Set<U>> initializor) {
|
public SetProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<Set<U>> initializor) {
|
||||||
super(initializor);
|
super(initializor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,9 @@ public class SortedMapProxy<K, V> implements SortedMap<K, V>, Serializable {
|
||||||
private Initializor<SortedMap<K, V>> initializor;
|
private Initializor<SortedMap<K, V>> initializor;
|
||||||
protected SortedMap<K, V> delegate;
|
protected SortedMap<K, V> delegate;
|
||||||
|
|
||||||
|
public SortedMapProxy() {
|
||||||
|
}
|
||||||
|
|
||||||
public SortedMapProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<SortedMap<K, V>> initializor) {
|
public SortedMapProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<SortedMap<K, V>> initializor) {
|
||||||
this.initializor = initializor;
|
this.initializor = initializor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,9 @@ import java.io.Serializable;
|
||||||
public class SortedSetProxy<U> extends CollectionProxy<U, SortedSet<U>> implements SortedSet<U>, Serializable {
|
public class SortedSetProxy<U> extends CollectionProxy<U, SortedSet<U>> implements SortedSet<U>, Serializable {
|
||||||
private static final long serialVersionUID = 2092884107178125905L;
|
private static final long serialVersionUID = 2092884107178125905L;
|
||||||
|
|
||||||
|
public SortedSetProxy() {
|
||||||
|
}
|
||||||
|
|
||||||
public SortedSetProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<SortedSet<U>> initializor) {
|
public SortedSetProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor<SortedSet<U>> initializor) {
|
||||||
super(initializor);
|
super(initializor);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue