use of uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage in project miso-lims by miso-lims.
the class Dtos method to.
public static Workset to(@Nonnull WorksetDto from) {
Workset workset = new Workset();
setLong(workset::setId, from.getId(), false);
setString(workset::setAlias, from.getAlias());
setString(workset::setDescription, from.getDescription());
setObject(workset::setCategory, WorksetCategory::new, from.getCategoryId());
setObject(workset::setStage, WorksetStage::new, from.getStageId());
setWorksetItems(workset::setWorksetSamples, from.getSampleIds(), WorksetSample::new, SampleImpl::new);
setWorksetItems(workset::setWorksetLibraries, from.getLibraryIds(), WorksetLibrary::new, LibraryImpl::new);
setWorksetItems(workset::setWorksetLibraryAliquots, from.getLibraryAliquotIds(), WorksetLibraryAliquot::new, LibraryAliquot::new);
return workset;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage in project miso-lims by miso-lims.
the class Dtos method toWorksetStage.
public static WorksetStage toWorksetStage(SimpleAliasableDto from) {
WorksetStage to = new WorksetStage();
setLong(to::setId, from.getId(), false);
setString(to::setAlias, from.getAlias());
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.workset.WorksetStage in project miso-lims by miso-lims.
the class HibernateWorksetStageDaoIT method getCreateItem.
@Override
public WorksetStage getCreateItem() {
WorksetStage stage = new WorksetStage();
stage.setAlias("New Stage");
return stage;
}
Aggregations