diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/SamplePE.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/SamplePE.java
index 7351714b76647642f1d219e20af2082a689f5437..364ad7171bdd19284ac39208f00912d91fe6bf83 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/SamplePE.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/SamplePE.java
@@ -675,6 +675,7 @@ public class SamplePE extends AttachmentHolderPE implements IIdAndCodeHolder, Co
         builder.append(getCode(), that.getCode());
         builder.append(getContainer(), that.getContainer());
         builder.append(getSpace(), that.getSpace());
+        builder.append(getProject(), that.getProject());
         return builder.isEquals();
     }
 
@@ -684,6 +685,7 @@ public class SamplePE extends AttachmentHolderPE implements IIdAndCodeHolder, Co
         final HashCodeBuilder builder = new HashCodeBuilder();
         builder.append(getCode());
         builder.append(getSpace());
+        builder.append(getProject());
         return builder.toHashCode();
     }