Search in sources :

Example 1 with SampleNumberPerProjectImpl

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;
}
Also used : SampleNumberPerProject(uk.ac.bbsrc.tgac.miso.core.data.SampleNumberPerProject) SampleNumberPerProjectImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleNumberPerProjectImpl)

Example 2 with SampleNumberPerProjectImpl

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;
}
Also used : SampleNumberPerProject(uk.ac.bbsrc.tgac.miso.core.data.SampleNumberPerProject) SampleNumberPerProjectImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleNumberPerProjectImpl)

Aggregations

SampleNumberPerProject (uk.ac.bbsrc.tgac.miso.core.data.SampleNumberPerProject)2 SampleNumberPerProjectImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleNumberPerProjectImpl)2