Skip to content
Snippets Groups Projects
Commit 99aebf7b authored by anttil's avatar anttil
Browse files

BIS-178 / SP-345: Fix the problem causing an error message when deleting all...

BIS-178 / SP-345: Fix the problem causing an error message when deleting all experiments from a project

SVN: 27250
parent 0bd52498
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
package ch.systemsx.cisd.openbis.generic.server.dataaccess.db;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
......@@ -139,6 +140,10 @@ public class MetaprojectDAO extends AbstractGenericEntityDAO<MetaprojectPE> impl
PersonPE owner, Collection<? extends IEntityInformationWithPropertiesHolder> entities,
EntityKind entityKind)
{
if (entities.isEmpty())
{
return Collections.emptySet();
}
final DetachedCriteria criteria = DetachedCriteria.forClass(MetaprojectAssignmentPE.class);
criteria.createAlias("metaproject", "m");
criteria.add(Restrictions.eq("m.owner", owner));
......
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