I tried the following:

- I had this to the persistence.xml

    <properties>
  |       <property name="hibernate.hbm2ddl.auto"
  |                 value="create-drop"/>
  |     </properties>

The trace into hsqldb log file is:
SET AUTOCOMMIT TRUE
  | drop table t_tech if exists
  | create table t_tech (nom varchar(255) not null, prenom varchar(255), 
primary key (nom))
  | SET AUTOCOMMIT FALSE
  | INSERT INTO T_TECH VALUES('NomTech1','PrenomTech1')
  | COMMIT

The error thrown become and i always have the FATAL error on 
[PersistenceXmlLoader] when deploying my ear

08:47:17,858 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
08:47:17,858 ERROR [JDBCExceptionReporter] failed batch
08:47:17,858 ERROR [AbstractFlushingEventListener] Could not synchronize 
database state with session
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch 
update
        at 
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
[...]

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927369#3927369

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927369


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to