Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 10baeec

Browse files
committed
Added ,serializable and associated serialVersionUID as per issue #113
1 parent 6929c19 commit 10baeec

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/main/java/org/energyos/espi/common/domain/IdentifiedObject.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
package org.energyos.espi.common.domain;
2626

27+
import java.io.Serializable;
2728
import java.util.ArrayList;
2829
import java.util.GregorianCalendar;
2930
import java.util.List;
@@ -82,8 +83,11 @@
8283
ReadingType.class
8384
})
8485
@MappedSuperclass
85-
public class IdentifiedObject extends Resource implements Linkable {
86+
public class IdentifiedObject extends Resource implements Linkable, Serializable {
8687

88+
@XmlTransient
89+
private static final long serialVersionUID = -5263186855332223773L;
90+
8791
public interface ResourceEnumClass {
8892
ResourceEnum getEnumType();
8993
}

src/main/java/org/energyos/espi/common/models/atom/LinkType.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@
2424

2525
package org.energyos.espi.common.models.atom;
2626

27+
import java.io.Serializable;
28+
2729
import javax.persistence.Embeddable;
2830
import javax.xml.bind.annotation.XmlAccessType;
2931
import javax.xml.bind.annotation.XmlAccessorType;
3032
import javax.xml.bind.annotation.XmlAttribute;
3133
import javax.xml.bind.annotation.XmlSchemaType;
34+
import javax.xml.bind.annotation.XmlTransient;
3235

3336

3437
/**
@@ -58,9 +61,12 @@
5861
*/
5962
@XmlAccessorType(XmlAccessType.FIELD)
6063
@Embeddable
61-
public class LinkType {
64+
public class LinkType implements Serializable {
6265

63-
public static final String SELF = "self";
66+
@XmlTransient
67+
private static final long serialVersionUID = 528461832553643471L;
68+
69+
public static final String SELF = "self";
6470
public static final String UP = "up";
6571
public static final String RELATED = "related";
6672
public static final String HREF = "href";

0 commit comments

Comments
 (0)