Hi ,

I get this DB2 Exception when I use
Key-generator="MAX" feature in Castor-JDO . 
Here is the exception trace - 
COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2]
SQL0118N  The table or view that is the target of the
INSERT, DELETE, or UPDATE statement is also specified
in a FROM clause.  SQLSTATE=42902

what can be the problem . I've simple table , and this
is simple mapping in my mapping .xml file 

  <class name="test.jdo.Product" identity="id"
key-generator="MAX">
          <map-to table="test_product" />
          <field name="id"      type="integer">
                <sql name="id" type="integer"/>
          </field>      
 </class>
                


Can you tell why am I getting the above exception ? 



__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to