Sorry,
we have download the hibernate 3 beta4, i have some question to post.
Here there's my hibernate.cfg:
Code:
[list]
<?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.datasource">java:comp/env/jdbc/as400</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.DB2400Dialect</property>
<mapping resource="pf.hbm.xml"/>
</session-factory>
</hibernate-configuration>
here my hbm:
<?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-mapping>
<class name="vo.as400.PfVO" table="sdgtwb_dat.aynau00f">
<composite-id>
<key-property name="stagpf" column="stag$a" type="string"/>
<key-property name="modepf" column="mode$a" type="string"/>
<key-property name="matepf" column="mate$a" type="string"/>
</composite-id>
<property name="de50pf">
<column name="dcol$a"/>
</property>
<property name="fl20pf">
<column name="FLAG$A"/>
</property>
</class>
</hibernate-mapping>
[/list]
When call in my java code SaveOrUpdate receive always this errors
Unexpected row count: 0 expected: 1
and the last question
why if in my table of db2/400 it's not under journal hibernate don't work?
Can you help me please,
Devis