package eu.eudat.models.dataset; import eu.eudat.models.DataModel; import org.hibernate.annotations.Type; import javax.persistence.Column; import java.util.UUID; public class Service implements DataModel{ 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; } 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; } public void fromDataModel(eu.eudat.entities.Service entity){ this.id = entity.getId(); this.label = entity.getLabel(); this.abbreviation = entity.getAbbreviation(); this.reference = entity.getReference(); this.uri = entity.getUri(); this.definition = entity.getDefinition(); } public eu.eudat.entities.Service toDataModel(){ eu.eudat.entities.Service entity = new eu.eudat.entities.Service(); return entity; } }