title: Hibernate : All tables in SQL Server database are not auto-created
body: <p>create tables from Java in database on Microsoft SQL Server 2012. All tables are created, except one table. I'm using JPA and there is my persistence.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"&gt;
    &lt;persistence-unit name="teknikPU" transaction-type="JTA"&gt;
      &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
      &lt;jta-data-source&gt;jdbc/teknikNDataSource&lt;/jta-data-source&gt;
      &lt;class&gt;com.royken.entities.Bloc&lt;/class&gt;
      &lt;class&gt;com.royken.entities.Elements&lt;/class&gt;
      &lt;class&gt;com.royken.entities.Organes&lt;/class&gt;
      &lt;class&gt;com.royken.entities.SousOrganes&lt;/class&gt;
      &lt;class&gt;com.royken.entities.Utilisateurs&lt;/class&gt;
      &lt;class&gt;com.royken.entities.Zone&lt;/class&gt;
      &lt;class&gt;com.royken.entities.Reponse&lt;/class&gt;
      &lt;exclude-unlisted-classes&gt;true&lt;/exclude-unlisted-classes&gt;
      &lt;properties&gt;
        &lt;property name="eclipselink.ddl-generation" value="create-or-extend-tables"/&gt;
        &lt;property name="eclipselink.logging.level" value="OFF"/&gt;
        &lt;property name="eclipselink.cache.shared.default" value="false"/&gt;
        &lt;property name="eclipselink.query-results-cache" value="false"/&gt;
        &lt;!--            &lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/&gt;
              &lt;property name="hibernate.show_sql" value="true"/&gt;
              &lt;property name="hibernate.transaction.jta.platform" value="org.hibernate.engine.transaction.jta.platform.internal.SunOneJtaPlatform" /&gt;
              &lt;property name="hibernate.transaction.factory_class" value="org.hibernate.engine.transaction.internal.jta.JtaTransactionFactory"/&gt;
              &lt;property name="hibernate.hbm2ddl.auto" value="update"/&gt;
              &lt;property name="hibernate.classloading.use_current_tccl_as_parent" value="false"/&gt;--&gt;
        &lt;!--&lt;property name="javax.persistence.schema-generation.database.action" value="create"/&gt; --&gt;
        &lt;property name="javax.persistence.schema-generation.database.action" value="create"/&gt;
      &lt;/properties&gt;
    &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>This is how I define my classes : </p>
  
  <pre><code>@Entity
  @XmlRootElement(name = "elements")
  @Table(name = "ELEMENTS")
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Elements implements Serializable {
  
      private static final long serialVersionUID = 1L;
      @OneToMany(mappedBy = "elements")
      private List&lt;Reponse&gt; reponses;
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "ID")
      private Long id;
  
      @Version
      @Column(name = "VERSION")
      private int version;
  
      @Column(name = "NOM")
      private String nom;
  
      @Column(columnDefinition = "tinyint(1) default true", name = "HASBORNS")
      private boolean hasBorns;
  
      @Column(columnDefinition = "tinyint(1) default true", name = "CRITERIAALPHA")
      private boolean criteriaAlpha;
  
  }
  </code></pre>
  
  <p>I have defined 7 tables like that, but only 6 tables are created, Elements tables is not created. When I change the datasource by using a mysql database (without changing any part of code), all my tables are well created.
  What can be the issue ?
  The image bellow shows the result in SQL server, Elements table is not present.
  <a href="https://i.stack.imgur.com/2LJxV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2LJxV.png" alt="enter image description here"></a></p>