AdditionalNotes.java
package com.tradecloud.domain.item;
import com.tradecloud.common.base.PersistenceBase;
import javax.persistence.Entity;
import java.util.Objects;
@Entity
public class AdditionalNotes extends PersistenceBase {
private String key;
private String value;
public AdditionalNotes() {
}
public AdditionalNotes(String key, String value) {
this.key = key;
this.value = value;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof AdditionalNotes that)) return false;
if (!super.equals(o)) return false;
return Objects.equals(getKey(), that.getKey());
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), getKey());
}
}