title: Hybris - overriding existing unique attributes of an Item Type to make them non-unique
body: <p>In my hybris application, I wanted to override my CustomerReview item type so that its attributes <strong>product</strong> and <strong>user</strong> are not unique anymore.</p>
  
  <p>The uniqueness of these attributes are declared in the relationships between CustomerReview and Product/User. I tried adding the relationship declaration again to my <strong>extname-items.xml</strong>  file and set the appropriate unique="false" attributes, as follows:</p>
  
  <pre><code>&lt;relation generate="false" localized="false" code="ReviewToUserRel" autocreate="false"&gt;
      &lt;sourceElement type="User" qualifier="user" cardinality="one"&gt;
          &lt;modifiers write="false" initial="true" optional="false" unique="false" /&gt;
      &lt;/sourceElement&gt;
      &lt;targetElement type="CustomerReview" qualifier="customerReviews" cardinality="many"&gt;
          &lt;modifiers write="false" initial="true" /&gt;
      &lt;/targetElement&gt;
  &lt;/relation&gt;
  </code></pre>
  
  <p>This doesn't do the trick though. After I rebuild the application and Update the Running System, the <strong>user</strong> and <strong>product</strong> attributes of a CustomerReview are still unique attributes.</p>
  
  <p>So what's the best solution for this problem?</p>