diff --git a/openbis/source/java/ch/ethz/sis/openbis/generic/server/api/v3/executor/sample/SampleQuery.java b/openbis/source/java/ch/ethz/sis/openbis/generic/server/api/v3/executor/sample/SampleQuery.java index 034ba69d0db097e01efd3aafd17abe0c899f2e19..01e5a06745bbcfb36ae9ae79e3b52430eca31dd2 100644 --- a/openbis/source/java/ch/ethz/sis/openbis/generic/server/api/v3/executor/sample/SampleQuery.java +++ b/openbis/source/java/ch/ethz/sis/openbis/generic/server/api/v3/executor/sample/SampleQuery.java @@ -48,13 +48,13 @@ public interface SampleQuery extends ObjectQuery String[] codes); @Select(sql = "select s.id, s.code as identifier from samples s join spaces sp on s.space_id = sp.id " - + "where sp.code = ?{1} and proj_id is null and samp_id_part_of is null and s.code = any(?{2})", + + "where sp.code = ?{1} and s.proj_id is null and samp_id_part_of is null and s.code = any(?{2})", parameterBindings = { TypeMapper.class, StringArrayMapper.class }, fetchSize = FETCH_SIZE) public List<TechIdStringIdentifierRecord> listSpaceSampleTechIdsByCodes(String spaceCode, String[] codes); @Select(sql = "select s.id, s.code as identifier from samples s join spaces sp on s.space_id = sp.id " + "join samples cs on s.samp_id_part_of = cs.id " - + "where sp.code = ?{1} and proj_id is null and cs.code = ?{2} and s.code = any(?{3})", parameterBindings = + + "where sp.code = ?{1} and s.proj_id is null and cs.code = ?{2} and s.code = any(?{3})", parameterBindings = { TypeMapper.class, TypeMapper.class, StringArrayMapper.class }, fetchSize = FETCH_SIZE) public List<TechIdStringIdentifierRecord> listSpaceSampleTechIdsByContainerCodeAndCodes(String spaceCode, String containerCode, String[] codes);