Hi jiri Svitak,
Thanks for ur replay. This is not working. In oracle am using the sequence name SESSIONINFO_ID_SEQ
But in DB2 the same sequence is not taken for sessioninfo table. My Persistance.xml look like
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.DB2Dialect"/>
<property name="hibernate.id.new_generator_mappings" value="false"/>
<property name="hibernate.connection.autocommit" value="false"/>
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="validate"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.transaction.manager_lookup_class" value="com.TransactionManagerLookup" />
</properties>