Cannot adding a table in Database via persistence.xml using Hibernate Jpa , Tomcat and Mysql -


i'm working in flex, blazeds,hibernate jpa, tomcat , mysql. problem face when start project:

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 

and persistence.xml file under src/meta-inf:

<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">  <persistence-unit name="consultant_db">     <provider>org.hibernate.ejb.hibernatepersistence</provider>       <class>com.adobe.demo.domain.permission</class>     <class>com.adobe.demo.domain.role</class>     <class>com.adobe.demo.domain.user</class>      <properties>         <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.driver" />         <property name="hibernate.connection.url" value="jdbc:mysql://localhost/consultant_db" />         <property name="hibernate.connection.username" value="root" />         <property name="hibernate.connection.password" value="" />         <property name="hibernate.dialect" value="org.hibernate.dialect.mysql5dialect" />          <property name="hibernate.connection.pool_size" value="6" />         <property name="hibernate.connection.autoreconnect" value="true" />         <property name="hibernate.generate_statistics" value="false" />         <property name="hibernate.show_sql" value="true" />         <property name="hibernate.use_sql_comments" value="false" />         <property name="hibernate.hbm2ddl.auto" value="update" />     </properties>   </persistence-unit> 

but if delete line: <class>com.adobe.demo.domain.user</class> other 2 tables created. should do?

here similar question. op trying create "user" table, failed. op able resolve issue annotation user class @table(name = "\"user\"").

i gave tips on how troubleshoot such problems.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -