Hi all,
I am using Websphere Application server 3.02. I am getting a strange error while using entity bean.
In my process, based on some business conditions i delete a record using the remove() method of entity bean.
After deleting record if i try to insert a record using create() method of entity bean with same primary key i get DuplicateKey Exception.
Any help on this would be appreciated.
Sanjay.
-
DuplicateKey exception while inserting record (5 messages)
- Posted by: sanjay gandhi
- Posted on: August 04 2000 04:14 EDT
Threaded Messages (5)
- DuplicateKey exception while inserting record by Shriram Mogallapalli on August 04 2000 12:00 EDT
- DuplicateKey exception while inserting record by sanjay gandhi on August 05 2000 07:12 EDT
- DuplicateKey exception while inserting record by O. Frank Allen on May 20 2003 02:44 EDT
- DuplicateKey exception while inserting record by sanjay gandhi on August 05 2000 07:12 EDT
- DuplicateKey exception while inserting record by Aaron Robinson on May 20 2003 17:20 EDT
- DuplicateKey exception while inserting record by Marco Garbelini on May 20 2003 18:19 EDT
-
DuplicateKey exception while inserting record[ Go to top ]
- Posted by: Shriram Mogallapalli
- Posted on: August 04 2000 12:00 EDT
- in response to sanjay gandhi
are you using CMP or BMP. If BMP (Bean Managed Persistence) check your database to C your DB record is getting deleted. There could be bug in you remove code?
just in case? -
DuplicateKey exception while inserting record[ Go to top ]
- Posted by: sanjay gandhi
- Posted on: August 05 2000 07:12 EDT
- in response to Shriram Mogallapalli
I have CMP in my entity bean. -
DuplicateKey exception while inserting record[ Go to top ]
- Posted by: O. Frank Allen
- Posted on: May 20 2003 14:44 EDT
- in response to sanjay gandhi
Have you ever solved this problem? -
DuplicateKey exception while inserting record[ Go to top ]
- Posted by: Aaron Robinson
- Posted on: May 20 2003 17:20 EDT
- in response to sanjay gandhi
Is the remove failing silently? -
DuplicateKey exception while inserting record[ Go to top ]
- Posted by: Marco Garbelini
- Posted on: May 20 2003 18:19 EDT
- in response to Aaron Robinson
I would recomend reviewing the primary key generation strategy in the first place.
There is a nice thread in the subject here
Cheers,
Marco Garbelini