43 lines
924 B
Java
43 lines
924 B
Java
package eu.eudat.models.data.datasetprofile;
|
|
|
|
import eu.eudat.data.entities.DatasetProfile;
|
|
import eu.eudat.models.DataModel;
|
|
|
|
import java.util.UUID;
|
|
|
|
public class DatasetProfileOverviewModel implements DataModel<DatasetProfile, DatasetProfileOverviewModel> {
|
|
private UUID id;
|
|
private String label;
|
|
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public DatasetProfileOverviewModel fromDataModel(DatasetProfile entity) {
|
|
this.id = entity.getId();
|
|
this.label = entity.getLabel();
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public DatasetProfile toDataModel() throws Exception {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public String getHint() {
|
|
return null;
|
|
}
|
|
}
|