From dcc4f063f3d13c4de9ae34feacb8de049cad9511 Mon Sep 17 00:00:00 2001
From: tpylak <tpylak>
Date: Tue, 27 Apr 2010 14:00:50 +0000
Subject: [PATCH] SE-242 bugfix: fetch sample for the dataset

SVN: 15664
---
 .../ch/systemsx/cisd/openbis/generic/shared/dto/DataPE.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/DataPE.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/DataPE.java
index f8cca9d9b23..33b7dfffe2e 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/DataPE.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/DataPE.java
@@ -229,7 +229,7 @@ public class DataPE extends AbstractIdAndCodeHolder<DataPE> implements IEntityPr
         return getSampleInternal();
     }
 
-    @ManyToOne(fetch = FetchType.LAZY)
+    @ManyToOne(fetch = FetchType.EAGER)
     @JoinColumn(name = ColumnNames.SAMPLE_COLUMN)
     private SamplePE getSampleInternal()
     {
-- 
GitLab