title: Equivalent of hibernate @Index?
body: <p>The hibernate annotation <code>@Index</code> is deprecated, but I can't find docs or any hints how to exchange it.</p>
  
  <pre><code>@Entity
  class MyEntity {
        @Index(name = "name") //org.hibernate.annotations.Index
        private String name;
  
        @Index(name = "age")
        private int age;
  }
  </code></pre>
  
  <p>Result:
  <code>@deprecated Using {@link javax.persistence.Index} instead.</code>
  But if I change the import: <code>Annotation disallowed for this location</code>.</p>
  
  <p>So: how does the above entity have to look like when using non-deprecated index?</p>