I have reading more of post about my problem,
"hibernate Could not synchronize database state with session"
I have tried to do what they have written in many posts, but without success.
but the strange thing, has been that for
many days the application has turned.
I have checked again the whole code, it is the only thing that we have changed you/he/she has been the file of configuration.
Here the mapping file
Hibernate version:3 rc1
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!--
<property name="connection.url">jdbc:as400://10.1.10.1</property>
<property name="dialect">org.hibernate.dialect.DB2400Dialect</property>
<property name="connection.password">QPGMR</property>
<property name="connection.username">QPGMR</property>
<property name="connection.driver_class">com.ibm.as400.access.AS400JDBCDriver</property>
<property name="show_sql">true</property>
-->
<property name="connection.datasource">java:comp/env/jdbc/as400</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.DB2400Dialect</property>
</session-factory>
</hibernate-configuration>
With comments the code don't work throws the exection "Could not synchronize database state with session" but using jndi work very well.
There is a logical explanation please.
If you wish major information about this , you can ask me.
Thank's for your work
Devis