37 lines
876 B
Java
37 lines
876 B
Java
package eu.eudat.commons.types.referencetype;
|
|
|
|
import eu.eudat.commons.enums.ReferenceFieldDataType;
|
|
import jakarta.xml.bind.annotation.XmlAccessType;
|
|
import jakarta.xml.bind.annotation.XmlAccessorType;
|
|
import jakarta.xml.bind.annotation.XmlAttribute;
|
|
import jakarta.xml.bind.annotation.XmlRootElement;
|
|
|
|
@XmlRootElement(name = "field")
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
public class ReferenceTypeFieldEntity {
|
|
|
|
@XmlAttribute(name = "code")
|
|
private String code;
|
|
@XmlAttribute(name = "dataType")
|
|
private ReferenceFieldDataType dataType;
|
|
|
|
|
|
public String getCode() {
|
|
return code;
|
|
}
|
|
|
|
public void setCode(String code) {
|
|
this.code = code;
|
|
}
|
|
|
|
|
|
public ReferenceFieldDataType getDataType() {
|
|
return dataType;
|
|
}
|
|
|
|
public void setDataType(ReferenceFieldDataType dataType) {
|
|
this.dataType = dataType;
|
|
}
|
|
|
|
}
|