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.
71 lines
1.7 KiB
Java
71 lines
1.7 KiB
Java
package com.supervision.pdfqaserver.dto;
|
|
|
|
import com.supervision.pdfqaserver.domain.ErAttribute;
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class ERAttributeDTO {
|
|
|
|
private String id;
|
|
|
|
/**
|
|
* 领域分类id
|
|
*/
|
|
private String domainMetadataId;
|
|
|
|
/**
|
|
* 属性名
|
|
*/
|
|
private String erName;
|
|
|
|
/**
|
|
* 属性值类型
|
|
*/
|
|
private String attrName;
|
|
|
|
/**
|
|
* 属性值类型
|
|
*/
|
|
private String attrValueType;
|
|
|
|
/**
|
|
* 节点 1 关系 2
|
|
*/
|
|
private String erType;
|
|
|
|
|
|
public ERAttributeDTO() {
|
|
}
|
|
|
|
public ERAttributeDTO(String id, String domainMetadataId, String erName, String attrName, String attrValueType, String erType) {
|
|
this.id = id;
|
|
this.domainMetadataId = domainMetadataId;
|
|
this.erName = erName;
|
|
this.attrName = attrName;
|
|
this.attrValueType = attrValueType;
|
|
this.erType = erType;
|
|
}
|
|
|
|
public ERAttributeDTO(String attrName) {
|
|
this.attrName = attrName;
|
|
}
|
|
|
|
public ERAttributeDTO(ErAttribute erAttribute) {
|
|
this.id = erAttribute.getId();
|
|
this.domainMetadataId = erAttribute.getDomainMetadataId();
|
|
this.attrName = erAttribute.getAttrName();
|
|
this.attrValueType = erAttribute.getAttrValueType();
|
|
this.erType = erAttribute.getErType();
|
|
}
|
|
|
|
public ErAttribute toErAttribute() {
|
|
ErAttribute erAttribute = new ErAttribute();
|
|
erAttribute.setId(this.id);
|
|
erAttribute.setDomainMetadataId(this.domainMetadataId);
|
|
erAttribute.setAttrName(this.attrName);
|
|
erAttribute.setAttrValueType(this.attrValueType);
|
|
erAttribute.setErType(this.erType);
|
|
return erAttribute;
|
|
}
|
|
}
|