use of uk.ac.bbsrc.tgac.miso.core.data.impl.AssayTest in project miso-lims by miso-lims.
the class AssayTestDto method to.
public AssayTest to() {
AssayTest to = new AssayTest();
setLong(to::setId, getId(), false);
setString(to::setAlias, getAlias());
setObject(to::setTissueType, TissueTypeImpl::new, getTissueTypeId());
setObject(to::setExtractionClass, SampleClassImpl::new, getExtractionClassId());
setBoolean(to::setNegateTissueType, isNegateTissueType(), false);
setObject(to::setLibraryDesignCode, LibraryDesignCode::new, getLibraryDesignCodeId());
setObject(to::setLibraryQualificationMethod, getLibraryQualificationMethod(), LibraryQualificationMethod::valueOf);
setObject(to::setLibraryQualificationDesignCode, LibraryDesignCode::new, getLibraryQualificationDesignCodeId());
setBoolean(to::setRepeatPerTimepoint, isRepeatPerTimepoint(), false);
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.AssayTest in project miso-lims by miso-lims.
the class HibernateAssayTestDaoIT method getCreateItem.
@Override
public AssayTest getCreateItem() {
AssayTest test = new AssayTest();
test.setAlias("Test test");
TissueType tissueType = (TissueType) currentSession().get(TissueTypeImpl.class, 1L);
test.setTissueType(tissueType);
SampleClass extractionClass = (SampleClass) currentSession().get(SampleClassImpl.class, 3L);
test.setExtractionClass(extractionClass);
LibraryDesignCode code = (LibraryDesignCode) currentSession().get(LibraryDesignCode.class, 2L);
test.setLibraryDesignCode(code);
test.setLibraryQualificationMethod(AssayTest.LibraryQualificationMethod.LOW_DEPTH_SEQUENCING);
return test;
}
Aggregations