Skip to content
Snippets Groups Projects
Commit d9061181 authored by felmer's avatar felmer
Browse files

SSDM-1012: Bug fixed: Project identifier added to experiment. Otherwise...

SSDM-1012: Bug fixed: Project identifier added to experiment. Otherwise splitting data set sets in accordance to projects in BySpacePolicy doesn't work.

SVN: 32864
parent 2d83fea8
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.dto.SampleType;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.Space;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ExperimentIdentifier;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.IdentifierHelper;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.ProjectIdentifier;
import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SampleIdentifier;
import ch.systemsx.cisd.openbis.generic.shared.translator.DatabaseInstanceTranslator;
......@@ -52,7 +53,7 @@ import ch.systemsx.cisd.openbis.generic.shared.translator.DatabaseInstanceTransl
public class SecondaryEntityDAO
{
/**
* Creates a new instance based on {@link PersistencyResources} and home {@link DatabaseInstancePE} of specified DAO factory.
* Creates a new instance based on {@link PersistencyResources} of specified DAO factory.
*/
public static SecondaryEntityDAO create(IDAOFactory daoFactory)
{
......@@ -107,6 +108,7 @@ public class SecondaryEntityDAO
project.setId(record.p_id);
project.setPermId(record.p_perm_id);
project.setCode(record.p_code);
project.setIdentifier(new ProjectIdentifier(space.getCode(), record.p_code).toString());
project.setSpace(space);
experiment.setProject(project);
final ExperimentType experimentType = new ExperimentType();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment