From e2ae25a9a9e312520011165103334a9c1f16281f Mon Sep 17 00:00:00 2001 From: Adam Warski Date: Tue, 25 Nov 2008 15:25:46 +0000 Subject: [PATCH] HHH-3623: collectin proxies are serializable git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15615 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../entities/mapper/relation/lazy/proxy/CollectionProxy.java | 3 +++ .../entities/mapper/relation/lazy/proxy/ListProxy.java | 5 +++++ .../envers/entities/mapper/relation/lazy/proxy/MapProxy.java | 3 +++ .../envers/entities/mapper/relation/lazy/proxy/SetProxy.java | 3 +++ .../entities/mapper/relation/lazy/proxy/SortedMapProxy.java | 3 +++ .../entities/mapper/relation/lazy/proxy/SortedSetProxy.java | 3 +++ 6 files changed, 20 insertions(+) diff --git a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/CollectionProxy.java b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/CollectionProxy.java index 64ba99e886..8fa4609d8f 100644 --- a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/CollectionProxy.java +++ b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/CollectionProxy.java @@ -35,6 +35,9 @@ public abstract class CollectionProxy> implements Col private org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor initializor; protected T delegate; + protected CollectionProxy() { + } + public CollectionProxy(Initializor initializor) { this.initializor = initializor; } diff --git a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/ListProxy.java b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/ListProxy.java index 31954676d7..0352c01205 100644 --- a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/ListProxy.java +++ b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/ListProxy.java @@ -23,6 +23,8 @@ */ 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.List; import java.util.ListIterator; @@ -34,6 +36,9 @@ import java.io.Serializable; public class ListProxy extends CollectionProxy> implements List, Serializable { private static final long serialVersionUID = -5479232938279790987L; + public ListProxy() { + } + public ListProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor> initializor) { super(initializor); } diff --git a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java index 39fc532703..92d90dab06 100644 --- a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java +++ b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java @@ -39,6 +39,9 @@ public class MapProxy implements Map, Serializable { private Initializor> initializor; protected Map delegate; + public MapProxy() { + } + public MapProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor> initializor) { this.initializor = initializor; } diff --git a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SetProxy.java b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SetProxy.java index 9959629e4c..7eb0bf3b2d 100644 --- a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SetProxy.java +++ b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SetProxy.java @@ -32,6 +32,9 @@ import java.io.Serializable; public class SetProxy extends CollectionProxy> implements Set, Serializable { private static final long serialVersionUID = 131464133074137701L; + public SetProxy() { + } + public SetProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor> initializor) { super(initializor); } diff --git a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java index b6359cba23..6a794589b1 100644 --- a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java +++ b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java @@ -41,6 +41,9 @@ public class SortedMapProxy implements SortedMap, Serializable { private Initializor> initializor; protected SortedMap delegate; + public SortedMapProxy() { + } + public SortedMapProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor> initializor) { this.initializor = initializor; } diff --git a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java index 2fc92fdbe9..007b7b3128 100644 --- a/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java +++ b/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java @@ -33,6 +33,9 @@ import java.io.Serializable; public class SortedSetProxy extends CollectionProxy> implements SortedSet, Serializable { private static final long serialVersionUID = 2092884107178125905L; + public SortedSetProxy() { + } + public SortedSetProxy(org.hibernate.envers.entities.mapper.relation.lazy.initializor.Initializor> initializor) { super(initializor); }