-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: For hibernate team
PostPosted: Tue Mar 15, 2005 8:45 am 
Regular
Regular

Joined: Thu Feb 24, 2005 2:34 pm
Posts: 80
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.