Hi Shibin,

You will have to make a few small changes to get identity columns working with DB2. In particular you will need to:

- make all identity columns read-only via the field-descriptor access attribute.
- patch PlatformDb2Impl to implement getLastInsertIdentityQuery() (patch attached)
- use SequenceManagerNativeImpl
- patch SequenceManagerNativeImpl to ignore classes that don't have identity fields (patch attached)


This will get the basics working.

Mike




On Thursday, September 18, 2003, at 10:43 AM, shibin ck wrote:

Hi,
I have a class with primary key as Identity column. Whenever i try to store an object of this class to database, ojb is throwing exception. I have tried it with autoincrement="true" also. Im using DB2 with j2ee, and i dont know which sequence manager to use.


Thanks in advance
shibin


--------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to