From 81c88d0677da0a82061d04761ec6ebfc862efff8 Mon Sep 17 00:00:00 2001
From: buczekp <buczekp>
Date: Tue, 10 May 2011 09:24:21 +0000
Subject: [PATCH] [LMS-2104] fixed query

SVN: 21187
---
 .../bo/datasetlister/IDatasetListingQuery.java      | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/datasetlister/IDatasetListingQuery.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/datasetlister/IDatasetListingQuery.java
index 22f1ce1de18..7ee36dac0d8 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/datasetlister/IDatasetListingQuery.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/business/bo/datasetlister/IDatasetListingQuery.java
@@ -88,9 +88,9 @@ public interface IDatasetListingQuery extends TransactionQuery, IPropertyListing
      */
     @Select(sql = SELECT_ALL
             + " WHERE data.id > ?{2} AND data.samp_id IN (SELECT id FROM samples s WHERE s.saty_id=?{1})", fetchSize = FETCH_SIZE)
-        public DataIterator<DatasetRecord> getNewDataSetsForSampleType(long sampleTypeId,
-                long lastSeenDatasetId);
-    
+    public DataIterator<DatasetRecord> getNewDataSetsForSampleType(long sampleTypeId,
+            long lastSeenDatasetId);
+
     /**
      * Returns datasets from store with given id that have status equal 'AVAILABLE' and were
      * modified before given date.
@@ -188,8 +188,7 @@ public interface IDatasetListingQuery extends TransactionQuery, IPropertyListing
     @Select(sql = SELECT_ALL + " where data.code = any(?{1})", parameterBindings =
         { StringArrayMapper.class }, fetchSize = FETCH_SIZE)
     public DataIterator<DatasetRecord> getDatasets(String[] datasetCodes);
-    
-    
+
     /**
      * Returns the children dataset ids of the specified datasets.
      */
@@ -197,9 +196,10 @@ public interface IDatasetListingQuery extends TransactionQuery, IPropertyListing
         { LongSetMapper.class }, fetchSize = FETCH_SIZE)
     public DataIterator<Long> getDatasetChildrenIds(LongSet sampleId);
 
-    @Select(sql = "select id from data where ctnr_parent_id = any(?{1})", parameterBindings =
+    @Select(sql = "select id from data where ctnr_id = any(?{1})", parameterBindings =
         { LongSetMapper.class }, fetchSize = FETCH_SIZE)
     public DataIterator<Long> getContainedDataSetIds(LongSet containerIDs);
+
     //
     // Entity Properties
     //
@@ -246,5 +246,4 @@ public interface IDatasetListingQuery extends TransactionQuery, IPropertyListing
     public DataIterator<MaterialEntityPropertyRecord> getEntityPropertyMaterialValues(
             LongSet entityIds);
 
-
 }
-- 
GitLab