import java.util.ArrayList;
import java.util.List;
-
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
-
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
-
import org.onap.policy.common.utils.validation.Assertions;
import org.onap.policy.models.base.PfConcept;
import org.onap.policy.models.base.PfKey;
this.doubleValue = 123.45;
}
+ public DummyReferenceEntity(DummyReferenceEntity source) {
+ this.key = source.key;
+ this.doubleValue = source.doubleValue;
+ }
+
/**
* Constructor.
*
key.clean();
}
- @Override
- public PfConcept copyTo(final PfConcept target) {
- Assertions.argumentNotNull(target, "target may not be null");
-
- final PfConcept copyObject = target;
- Assertions.instanceOf(copyObject, DummyReferenceEntity.class);
-
- final DummyReferenceEntity copy = ((DummyReferenceEntity) copyObject);
- copy.setKey(key);
- copy.setDoubleValue(doubleValue);
-
- return copyObject;
- }
-
@Override
public int compareTo(final PfConcept otherObj) {