You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB
Java

2 months ago
package com.supervision.pdfqaserver.dto;
2 months ago
import com.supervision.pdfqaserver.domain.TruncationErAttribute;
2 months ago
import lombok.Data;
/**
*
*/
@Data
public class ERAttributeDTO {
private String id;
/**
* truncation_entity_extractionidtruncation_relation_extractionid
*/
private String terId;
/**
* 0terIdid 1terIdid
*/
private String associationType;
2 months ago
/**
*
*/
private String attribute;
private String attributeEn;
2 months ago
/**
*
*/
private String value;
/**
* 0 1
*/
private String dataType;
public ERAttributeDTO() {
}
public ERAttributeDTO(TruncationErAttribute truncationErAttribute) {
this.id = truncationErAttribute.getId();
this.terId = truncationErAttribute.getTerId();
this.associationType = truncationErAttribute.getAssociationType();
this.attribute = truncationErAttribute.getAttribute();
this.value = truncationErAttribute.getValue();
this.dataType = truncationErAttribute.getDataType();
}
2 months ago
public ERAttributeDTO(String attribute, String value, String dataType) {
this.attribute = attribute;
this.value = value;
this.dataType = dataType;
}
2 months ago
public TruncationErAttribute toTruncationErAttribute() {
TruncationErAttribute truncationErAttribute = new TruncationErAttribute();
truncationErAttribute.setTerId(this.terId);
truncationErAttribute.setAssociationType(this.associationType);
2 months ago
truncationErAttribute.setAttribute(this.attribute);
truncationErAttribute.setValue(this.value);
truncationErAttribute.setDataType(this.dataType);
return truncationErAttribute;
}
2 months ago
}