title: What Hybris Does when we do Modelservice.Save()?
body: <p>While I am saving a model using <code>ModelService.save()</code>, it is throwing </p>
  
  <pre><code>de.hybris.platform.servicelayer.interceptor.InterceptorException: [de.hybris.platform.servicelayer.interceptor.impl.UniqueAttributesInterceptor@555528e4]:ambiguous unique keys
          at de.hybris.platform.servicelayer.interceptor.impl.UniqueAttributesInterceptor.onValidate(UniqueAttributesInterceptor.java:158)
  </code></pre>
  
  <p>What I understand is it is happening because it is trying to <code>INSERT</code> and if it can DO <strong>INSERT_UPDATE</strong> then the problem can be resolved. I don't want to make Legacy Mode ON so please provide me a solution where I can do <code>INSERT_UPDATE</code> through <code>ModelService.save()</code> method. </p>
  
  <p>If ModelService.save() is doing INSERT_UPDATE then why the error is coming.</p>