title: error More than one row with the given identifier was found in Spring-Hibernate
body: <p>How can i retrieve all the records from a child table in which i had given many-to-one in child and one-to-many in parent. like,</p>
  
  <p>my parent class have mapping like.. </p>
  
  <pre><code>@OneToMany(mappedBy = "accountMaster")
  private Set&lt;AccountsData&gt; pinAccounts;
  </code></pre>
  
  <p>and in my child i have..</p>
  
  <pre><code>@ManyToOne(cascade = CascadeType.ALL)
  @JoinColumn(name = "mId")
  private MasterData accountMaster;
  </code></pre>
  
  <p>While i tried the following code i got the error <code>More than one row with the given identifier was found</code></p>
  
  <p>my code was ..</p>
  
  <pre><code>Criteria myCriteria = sessionFactory.getCurrentSession().createCriteria(AccountsData.class)
                  .add(Restrictions.eq("IsDeleted", false));
          return myCriteria.list();
  </code></pre>
  
  <p>I want to get all the entries from child table. But its showing that error. How can i make it?</p>
  
  <p>Thanks in advance..</p>