Author: adamw
Date: 2008-11-25 10:23:40 -0500 (Tue, 25 Nov 2008)
New Revision: 15614
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/ListProxy.java
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SetProxy.java
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java
Log:
HHH-3623: collectin proxies are serializable
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/ListProxy.java
===================================================================
---
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/ListProxy.java 2008-11-25
15:05:58 UTC (rev 15613)
+++
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/ListProxy.java 2008-11-25
15:23:40 UTC (rev 15614)
@@ -26,11 +26,14 @@
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);
}
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java
===================================================================
---
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java 2008-11-25
15:05:58 UTC (rev 15613)
+++
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/MapProxy.java 2008-11-25
15:23:40 UTC (rev 15614)
@@ -26,13 +26,16 @@
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;
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SetProxy.java
===================================================================
---
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SetProxy.java 2008-11-25
15:05:58 UTC (rev 15613)
+++
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SetProxy.java 2008-11-25
15:23:40 UTC (rev 15614)
@@ -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);
}
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java
===================================================================
---
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java 2008-11-25
15:05:58 UTC (rev 15613)
+++
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedMapProxy.java 2008-11-25
15:23:40 UTC (rev 15614)
@@ -28,13 +28,16 @@
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;
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java
===================================================================
---
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java 2008-11-25
15:05:58 UTC (rev 15613)
+++
core/trunk/envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/proxy/SortedSetProxy.java 2008-11-25
15:23:40 UTC (rev 15614)
@@ -25,11 +25,14 @@
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);
}
Show replies by date