public static DilutionDto asDto(@Nonnull LibraryDilution from, boolean includeFullLibrary, boolean includeBoxPositions) { LibraryDto libDto = null; if (includeFullLibrary) { libDto = asDto(from.getLibrary(), false); } else { Library lib = from.getLibrary(); libDto = new LibraryDto(); libDto.setId(lib.getId()); libDto.setName(lib.getName()); libDto.setAlias(lib.getAlias()); libDto.setIdentificationBarcode(lib.getIdentificationBarcode()); if (lib.getPlatformType() != null) { libDto.setPlatformType(lib.getPlatformType().getKey()); } } return asDto(from, libDto, includeBoxPositions); }
dto.setLowQuality(from.isLowQuality()); dto.setPaired(from.getPaired()); if (from.getPlatformType() != null) { dto.setPlatformType(from.getPlatformType().getKey());
v.setPlatformType(lib.getPlatformType());
target.setConcentration(source.getConcentration()); target.setConcentrationUnits(target.getConcentration() == null ? null : source.getConcentrationUnits()); target.setPlatformType(source.getPlatformType()); target.setAlias(source.getAlias()); target.setPaired(source.getPaired());