Skip to content
Snippets Groups Projects
Commit 992f849a authored by tpylak's avatar tpylak
Browse files

LMS-2648 it fails when several datasets are registered in one transaction

SVN: 23712
parent 4330eed6
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ import org.hibernate.Session; ...@@ -31,6 +31,7 @@ import org.hibernate.Session;
import ch.rinn.restrictions.Private; import ch.rinn.restrictions.Private;
import ch.systemsx.cisd.common.collections.IKeyExtractor; import ch.systemsx.cisd.common.collections.IKeyExtractor;
import ch.systemsx.cisd.common.collections.TableMap; import ch.systemsx.cisd.common.collections.TableMap;
import ch.systemsx.cisd.common.collections.TableMap.UniqueKeyViolationStrategy;
import ch.systemsx.cisd.common.exceptions.UserFailureException; import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.common.shared.basic.utils.StringUtils; import ch.systemsx.cisd.common.shared.basic.utils.StringUtils;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDAOFactory; import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDAOFactory;
...@@ -225,7 +226,8 @@ public final class EntityPropertiesConverter implements IEntityPropertiesConvert ...@@ -225,7 +226,8 @@ public final class EntityPropertiesConverter implements IEntityPropertiesConvert
new TableMap<PropertyTypePE, EntityTypePropertyTypePE>(daoFactory new TableMap<PropertyTypePE, EntityTypePropertyTypePE>(daoFactory
.getEntityPropertyTypeDAO(entityKind).listEntityPropertyTypes( .getEntityPropertyTypeDAO(entityKind).listEntityPropertyTypes(
entityTypePE), entityTypePE),
EntityTypePropertyTypeByPropertyTypeKeyExtractor.INSTANCE); EntityTypePropertyTypeByPropertyTypeKeyExtractor.INSTANCE,
UniqueKeyViolationStrategy.KEEP_FIRST);
} else } else
{ {
EntityTypePropertyTypePE cached = EntityTypePropertyTypePE cached =
......
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