2017-12-15 00:01:26 +01:00
|
|
|
package eu.eudat.models.dataset;
|
|
|
|
|
|
|
|
import eu.eudat.models.DataModel;
|
2017-12-19 17:22:30 +01:00
|
|
|
import eu.eudat.utilities.helpers.LabelGenerator;
|
2017-12-19 15:09:49 +01:00
|
|
|
import org.hibernate.annotations.Type;
|
|
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
import java.util.UUID;
|
2017-12-15 00:01:26 +01:00
|
|
|
|
2017-12-19 17:22:30 +01:00
|
|
|
public class Registry implements DataModel<eu.eudat.entities.Registry>,LabelGenerator {
|
2017-12-19 15:09:49 +01:00
|
|
|
private UUID id;
|
|
|
|
private String label;
|
|
|
|
private String abbreviation;
|
|
|
|
private String reference;
|
|
|
|
private String uri;
|
|
|
|
private String definition;
|
|
|
|
|
|
|
|
public UUID getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(UUID id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLabel(String label) {
|
|
|
|
this.label = label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getAbbreviation() {
|
|
|
|
return abbreviation;
|
|
|
|
}
|
|
|
|
|
2017-12-19 17:22:30 +01:00
|
|
|
@Override
|
|
|
|
public String generateLabel() {
|
|
|
|
return getLabel();
|
|
|
|
}
|
|
|
|
|
2017-12-19 15:09:49 +01:00
|
|
|
public void setAbbreviation(String abbreviation) {
|
|
|
|
this.abbreviation = abbreviation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getReference() {
|
|
|
|
return reference;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setReference(String reference) {
|
|
|
|
this.reference = reference;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getUri() {
|
|
|
|
return uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setUri(String uri) {
|
|
|
|
this.uri = uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getDefinition() {
|
|
|
|
return definition;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDefinition(String definition) {
|
|
|
|
this.definition = definition;
|
|
|
|
}
|
2017-12-15 00:01:26 +01:00
|
|
|
|
|
|
|
public void fromDataModel(eu.eudat.entities.Registry entity){
|
2017-12-19 15:09:49 +01:00
|
|
|
this.id = entity.getId();
|
|
|
|
this.label = entity.getLabel();
|
|
|
|
this.abbreviation = entity.getAbbreviation();
|
|
|
|
this.reference = entity.getReference();
|
|
|
|
this.uri = entity.getUri();
|
|
|
|
this.definition = entity.getDefinition();
|
2017-12-15 00:01:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public eu.eudat.entities.Registry toDataModel(){
|
|
|
|
eu.eudat.entities.Registry entity = new eu.eudat.entities.Registry();
|
|
|
|
return entity;
|
|
|
|
}
|
|
|
|
}
|