use of uk.ac.bbsrc.tgac.miso.core.data.impl.SampleNumberPerProjectImpl in project miso-lims by miso-lims.
the class Dtos method to.
public static SampleNumberPerProject to(@Nonnull SampleNumberPerProjectDto from) {
SampleNumberPerProject to = new SampleNumberPerProjectImpl();
to.setHighestSampleNumber(from.getHighestSampleNumber());
to.setPadding(from.getPadding());
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.SampleNumberPerProjectImpl in project miso-lims by miso-lims.
the class HibernateSampleNumberPerProjectDao method createSampleNumberPerProject.
private SampleNumberPerProject createSampleNumberPerProject(Project project, User user) {
SampleNumberPerProject sampleNumberPerProject;
sampleNumberPerProject = new SampleNumberPerProjectImpl();
sampleNumberPerProject.setProject(project);
sampleNumberPerProject.setHighestSampleNumber(0);
sampleNumberPerProject.setPadding(DEFAULT_PADDING);
sampleNumberPerProject.setCreatedBy(user);
sampleNumberPerProject.setUpdatedBy(user);
addSampleNumberPerProject(sampleNumberPerProject);
return sampleNumberPerProject;
}
Aggregations