use of uk.ac.bbsrc.tgac.miso.core.data.impl.Sop.SopCategory in project miso-lims by miso-lims.
the class Dtos method to.
public static Sop to(@Nonnull SopDto from) {
Sop to = new Sop();
setLong(to::setId, from.getId(), false);
setString(to::setAlias, from.getAlias());
setString(to::setVersion, from.getVersion());
setObject(to::setCategory, from.getCategory(), SopCategory::valueOf);
setString(to::setUrl, from.getUrl());
setBoolean(to::setArchived, from.isArchived(), false);
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.Sop.SopCategory in project miso-lims by miso-lims.
the class HibernateSopDaoIT method testGetByAliasAndVersion.
@Test
public void testGetByAliasAndVersion() throws Exception {
SopCategory category = SopCategory.SAMPLE;
String alias = "Sample SOP 1";
String version = "1.0";
Sop sop = getTestSubject().get(category, alias, version);
assertNotNull(sop);
assertEquals(category, sop.getCategory());
assertEquals(alias, sop.getAlias());
assertEquals(version, sop.getVersion());
}
Aggregations