title: JPA: defining an index column
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3405229/specifying-an-index-non-unique-key-using-jpa">Specifying an index (non unique key) using JPA</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way to define index on enitity column, to improve searches performance?
  I saw that hibernate gives @Index and @IndexColumn, but I am looking for JPA way to do it.</p>
  
  <p>thanks</p>
  
  <p>Here is an example of my entity, I need to index a name column</p>
  
  <pre><code>@Entity
  @Table(name = "MY_TABLE")
  public class MyEntity {
      private long id;
      private String name;
      private String sourceInfo;
  
    ...
  </code></pre>