From 1e5e4a2852c45b31415ec8734f12ea8124b0fcc2 Mon Sep 17 00:00:00 2001 From: cramakri <cramakri> Date: Wed, 11 Apr 2012 10:42:50 +0000 Subject: [PATCH] LMS-2789 Improved again printing of Sample DTO SVN: 24863 --- .../cisd/openbis/generic/shared/api/v1/dto/Sample.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openbis_api/source/java/ch/systemsx/cisd/openbis/generic/shared/api/v1/dto/Sample.java b/openbis_api/source/java/ch/systemsx/cisd/openbis/generic/shared/api/v1/dto/Sample.java index cdfc01155af..c4f6ce86e5e 100644 --- a/openbis_api/source/java/ch/systemsx/cisd/openbis/generic/shared/api/v1/dto/Sample.java +++ b/openbis_api/source/java/ch/systemsx/cisd/openbis/generic/shared/api/v1/dto/Sample.java @@ -438,15 +438,25 @@ public final class Sample implements Serializable, IIdentifierHolder if (retrievedFetchOptions.contains(SampleFetchOption.PROPERTIES)) { builder.append(getProperties()); + } else + { + builder.append("properties=?"); } if (retrievedFetchOptions.contains(SampleFetchOption.PARENTS)) { builder.append("parents", getParents()); + } else + { + builder.append("parents=?"); } if (retrievedFetchOptions.contains(SampleFetchOption.CHILDREN)) { builder.append("children", getChildren()); } + else + { + builder.append("children=?"); + } return builder.toString(); } -- GitLab