title: Creating Indexes on DB with Hibernate @Index Annotation
body: <p>I have annotation-driven hibernate capabilies on my project.</p>
  
  <p>Now I want to create an index over a column. My current column definition is</p>
  
  <pre><code>@NotNull
  @Column(name = "hash")
  private String hash;
  </code></pre>
  
  <p>and I add <code>@Index</code> annotation here.</p>
  
  <pre><code>@NotNull
  @Column(name = "hash")
  @Index(name="hashIndex")
  private String hash;
  </code></pre>
  
  <p>and then DROP TABLE and restart Tomcat server. After the server is instantiated, the table is created but I can't see new index on following query. </p>
  
  <pre><code>SHOW INDEX FROM tableName
  </code></pre>
  
  <p>It is expected to construct table with new index. I am using InnoDB with MySQL.</p>