title: Cannot adding a table in Database via persistence.xml using Hibernate Jpa , Tomcat and Mysql
body: <p>I'm working in flex, blazeds,hibernate jpa, tomcat and mysql.
  This is the problem that I face when I start the project:</p>
  
  <pre><code>05.06.2012 22:33:29.459  INFO     org.hibernate.cfg.annotations.Version     - Hibernate Annotations 3.4.0.GA
  05.06.2012 22:33:29.479  INFO     org.hibernate.cfg.Environment             - Hibernate 3.3.2.GA
  05.06.2012 22:33:29.482  INFO     org.hibernate.cfg.Environment             - hibernate.properties not found
  05.06.2012 22:33:29.487  INFO     org.hibernate.cfg.Environment             - Bytecode provider name : javassist
  05.06.2012 22:33:29.493  INFO     org.hibernate.cfg.Environment             - using JDK 1.4 java.sql.Timestamp handling
  05.06.2012 22:33:29.645  INFO     org.hibernate.annotations.common.Version  - Hibernate Commons Annotations 3.1.0.GA
  05.06.2012 22:33:29.650  INFO     org.hibernate.ejb.Version                 - Hibernate EntityManager 3.4.0.GA
  </code></pre>
  
  <p>And this is my persistence.xml file under src/META-INF:</p>
  
  <pre><code>&lt;persistence version="1.0"
  xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"&gt;
  
  &lt;persistence-unit name="consultant_db"&gt;
      &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
  
  
      &lt;class&gt;com.adobe.demo.domain.Permission&lt;/class&gt;
      &lt;class&gt;com.adobe.demo.domain.Role&lt;/class&gt;
      &lt;class&gt;com.adobe.demo.domain.User&lt;/class&gt;
  
      &lt;properties&gt;
          &lt;property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" /&gt;
          &lt;property name="hibernate.connection.url" value="jdbc:mysql://localhost/consultant_db" /&gt;
          &lt;property name="hibernate.connection.username" value="root" /&gt;
          &lt;property name="hibernate.connection.password" value="" /&gt;
          &lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" /&gt;
  
          &lt;property name="hibernate.connection.pool_size" value="6" /&gt;
          &lt;property name="hibernate.connection.autoReconnect" value="true" /&gt;
          &lt;property name="hibernate.generate_statistics" value="false" /&gt;
          &lt;property name="hibernate.show_sql" value="true" /&gt;
          &lt;property name="hibernate.use_sql_comments" value="false" /&gt;
          &lt;property name="hibernate.hbm2ddl.auto" value="update" /&gt;
      &lt;/properties&gt;
  
  
  &lt;/persistence-unit&gt;
  </code></pre>
  
  <p></p>
  
  <p>But if I delete the line:  <code>&lt;class&gt;com.adobe.demo.domain.User&lt;/class&gt;</code>
  the other 2 tables will be created.
  What should I do? </p>