[LIB-10] SerialVersionUID for Serializable classes
[snooker-score-api.git] / src / main / java / org / hedgecode / snooker / json / JsonEvent.java
index 9b1eece..526389f 100644 (file)
@@ -16,6 +16,7 @@
 
 package org.hedgecode.snooker.json;
 
+import java.io.Serializable;
 import java.util.Date;
 
 import com.google.gson.annotations.Expose;
@@ -34,7 +35,9 @@ import org.hedgecode.snooker.api.Season;
  *
  * @author Dmitry Samoshin aka gotty
  */
-public class JsonEvent extends JsonIdEntity implements Event {
+public class JsonEvent extends JsonIdEntity implements Event, Serializable {
+
+    private static final long serialVersionUID = 3074418501643772690L;
 
     @SerializedName("ID")
     private int eventId;
@@ -127,7 +130,7 @@ public class JsonEvent extends JsonIdEntity implements Event {
     @Expose
     private Event previousEdition;
 
-    protected JsonEvent() {
+    JsonEvent() {
     }
 
     @Override