1 Reply Latest reply on Jun 4, 2006 1:14 PM by salvatore.gerace

    @Index and MySQL

    salvatore.gerace

      HI,
      I use the @Index annotation (org.hibernate.annotations.Index) for create index if I set in persistence.xml:


      work!

      not work with:


      This is a bug? Exists a solution?

      Configuration:
      jboss 4.0.4.GA, MySQL 5.0.18.

        • 1. Re: @Index and MySQL
          salvatore.gerace

          HI,
          I use the @Index annotation (org.hibernate.annotations.Index) for create index if I set in persistence.xml:

          property name="hibernate.hbm2ddl.auto" value="create-drop"
          work!

          not work with:
          property name="hibernate.hbm2ddl.auto" value="update"

          This is a bug? Exists a solution?

          Configuration:
          jboss 4.0.4.GA, MySQL 5.0.18.