Skip to content
Snippets Groups Projects
Commit acfaea7e authored by juanf's avatar juanf
Browse files

BIS-667 / SP-1208: Sample with container data set can be detached from experiment

SVN: 30924
parent 9dd72f30
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple ...@@ -112,7 +112,7 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple
@Override @Override
public boolean hasDataSet(SamplePE sample) throws DataAccessException public boolean hasDataSet(SamplePE sample) throws DataAccessException
{ {
final DetachedCriteria criteria = DetachedCriteria.forClass(ExternalDataPE.class); final DetachedCriteria criteria = DetachedCriteria.forClass(DataPE.class);
criteria.add(Restrictions.eq("sampleInternal", sample)); criteria.add(Restrictions.eq("sampleInternal", sample));
criteria.setProjection(Projections.rowCount()); criteria.setProjection(Projections.rowCount());
Integer count = Integer count =
......
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