Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Ecomp DTO up
[portal.git]
/
portal-BE
/
src
/
main
/
java
/
org
/
onap
/
portal
/
domain
/
dto
/
DomainVo.java
diff --git
a/portal-BE/src/main/java/org/onap/portal/domain/dto/DomainVo.java
b/portal-BE/src/main/java/org/onap/portal/domain/dto/DomainVo.java
index
e14b937
..
df99ed8
100644
(file)
--- a/
portal-BE/src/main/java/org/onap/portal/domain/dto/DomainVo.java
+++ b/
portal-BE/src/main/java/org/onap/portal/domain/dto/DomainVo.java
@@
-60,9
+60,11
@@
import org.onap.portalsdk.core.domain.FusionVo;
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Setter
@NoArgsConstructor
@AllArgsConstructor
-@Inheritance(strategy = InheritanceType.
JOINED
)
+@Inheritance(strategy = InheritanceType.
SINGLE_TABLE
)
public class DomainVo extends FusionVo implements Serializable, Cloneable, Comparable {
public class DomainVo extends FusionVo implements Serializable, Cloneable, Comparable {
+
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 1L;
+
protected Long id;
protected Date created;
protected Date modified;
protected Long id;
protected Date created;
protected Date modified;
@@
-75,7
+77,7
@@
public class DomainVo extends FusionVo implements Serializable, Cloneable, Compa
@Override
public int compareTo(Object obj) {
Long c1 = this.getId();
@Override
public int compareTo(Object obj) {
Long c1 = this.getId();
- Long c2 = ((org.onap.portalsdk.core.domain.support.DomainVo)obj).getId();
+ Long c2 = ((org.onap.portalsdk.core.domain.support.DomainVo)
obj).getId();
return c1 != null && c2 != null ? c1.compareTo(c2) : 1;
}
return c1 != null && c2 != null ? c1.compareTo(c2) : 1;
}
@@
-92,7
+94,7
@@
public class DomainVo extends FusionVo implements Serializable, Cloneable, Compa
oos.writeObject(this);
bais = new ByteArrayInputStream(baos.toByteArray());
ois = new ObjectInputStream(bais);
oos.writeObject(this);
bais = new ByteArrayInputStream(baos.toByteArray());
ois = new ObjectInputStream(bais);
- newVo = (DomainVo)ois.readObject();
+ newVo = (DomainVo)
ois.readObject();
if (isIdNull) {
newVo.setId(null);
}
if (isIdNull) {
newVo.setId(null);
}