title: Hibernate keeps creating tables for my enums
body: <p>I have two differents enums that are in two differents tables (they have the same structure, but different meanings).</p>
  
  <p>This is my first table called TYPE, from FIRST_SCHEMA</p>
  
  <pre><code>id   team   desc              days
  1    "AB"   "Do Thins"        2
  2    "CD"   "Other things"    3    
  </code></pre>
  
  <p>And this is the second one, called TYPE, from SECOND_SCHEMA.</p>
  
  <pre><code>id   team   desc                       days
  1    "AB"   "Other other thins"        1
  2    "CD"   "More and more things"     1
  </code></pre>
  
  <p>I've tried to map this enum in Java using hibernate annotations and they are like this:</p>
  
  <p><code>FirstEnum.java</code></p>
  
  <pre><code>@Entity
  @Table(name = "TYPE", schema="FIRST_SCHEMA")
  public enum FirstEnum implements SuperEnum&lt;FirstEnum&gt; {
  
      DO_THINGS(1, "AB", "Do things", 2),
      OTHER_THINGS(2, "CD", "Other things", 3);
  
  
      @Id
      @NotNull
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "id")
      private final int value;
  
      @Column(name = "team")
      private final String team;
  
      @Column(name = "desc")
      private final String dec;
  
      @Column(name = "days")
      private final int days;
  
      //getters and setters
  }
  </code></pre>
  
  <p><code>SecondEnum.java</code></p>
  
  <pre><code>@Entity
  @Table(name = "TYPE", schema="SECOND_SCHEMA")
  public enum SecondEnum implements SuperEnum&lt;SecondEnum&gt; {
  
      DO_THINGS(1, "AB", "Other other thins", 2),
      OTHER_THINGS(2, "CD", "More and more thingsS", 3);
  
  
      @Id
      @NotNull
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "id")
      private final int value;
  
      @Column(name = "team")
      private final String team;
  
      @Column(name = "desc")
      private final String dec;
  
      @Column(name = "days")
      private final int days;
  
      //getters and setters
  }
  </code></pre>
  
  <p>And the class which uses one of these types is mapped like this:</p>
  
  <p><code>Foo.java</code></p>
  
  <pre><code>@Table(name = "TABLE", schema="FIRST_SCHEMA")
  @Entity
  public class Foo extends Bar implements Serializable {
      private static final long serialVersionUID = 1L;
  
  
      @Enumerated(EnumType.ORDINAL)
      @Column(name = "id_type")
      private FirstEnum type;
  
      //getters and setters
  }
  </code></pre>
  
  <p>If I set in my <code>persistence.xml</code> the line:</p>
  
  <p><code>&lt;property name="hibernate.hbm2ddl.auto" value="update" /&gt;</code></p>
  
  <p>to</p>
  
  <p><code>&lt;property name="hibernate.hbm2ddl.auto" value="none" /&gt;</code></p>
  
  <p>It works as intended, it does not create a new "type" table. But, if not, it will create this empty table even thou I already have my types tables.</p>
  
  <p>What am i mapping wrong?</p>