title: How to save manytomany according to order of the List in Spring Data Jpa
body: <p>There're my model code</p>
  
  <pre><code>@Entity
  @Table(name = "jade")
  public class Jade extends BaseEntity implements Serializable {
  
      @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
      @JoinTable(name = "jade_feature", 
       joinColumns = { @JoinColumn(name = "jade_id", referencedColumnName = "id") }, 
       inverseJoinColumns = { @JoinColumn(name = "feature_id", referencedColumnName = "id") })
      private List&lt;Feature&gt; features;
  
  }
  </code></pre>
  
  <p>When I save the model, the data of List weren't saved according to the List's add method.</p>
  
  <p>For example：</p>
  
  <pre><code>List&lt;Feature&gt; features = new ArrayList&lt;Feature&gt;();
  features.add(a);
  features.add(b);
  features.add(c);
  Jade jade = new Jade(features);
  jade.saveAndFlush();
  </code></pre>
  
  <p>But the database data were 【c, a, b】Like this inserted.
  How to deal with this problem?</p>