title: org.hibernate.NonUniqueObjectException: exception occurs when calling Hibernate saveorUpdate()
body: <p>This is the piece of code from my program,in which I have tried to insert into Question table with hibernate <code>saveOrUpdae()</code> method.</p>
  
  <pre><code>this.txTemplate.setReadOnly(false);
  this.txTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRES_NEW);
          this.txTemplate.execute(new TransactionCallbackWithoutResult() {
          @Override
          protected void doInTransactionWithoutResult(TransactionStatus status)
          {
               questionManager.saveQuestionsofCurrentUser(filteredStreamDataMapForCurrentUSer.values(),user);
                   questionManager.updateQuestionsReady1on2(user);  
  
          }
  });
  </code></pre>
  
  <p>When try to run with multiple users, I am getting <strong><code>org.hibernate.NonUniqueObjectException:</code></strong>.The process run using multi thread concept.Any one can suggest a solution for it?</p>