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.

58 lines
1.4 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 type;
/**
*
*/
private String attribute;
/**
*
*/
private String value;
/**
* 0 1
*/
private String dataType;
public ERAttributeDTO() {
}
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.setType(this.type);
truncationErAttribute.setAttribute(this.attribute);
truncationErAttribute.setValue(this.value);
truncationErAttribute.setDataType(this.dataType);
return truncationErAttribute;
}
2 months ago
}