import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.AllArgsConstructor;
-import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
-
@NoArgsConstructor
@AllArgsConstructor
-@Inheritance(strategy = InheritanceType.JOINED)
+@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public class DomainVo extends FusionVo implements Serializable, Cloneable, Comparable {
+
private static final long serialVersionUID = 1L;
+
protected Long id;
protected Date created;
protected Date modified;
@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;
}
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);
}