|
I am trying to determine if I must do an insert or update by trying to get the object from the db by using the primary key.
Something like this:
Product dbProduct = (Product)pm.getObjectById(primaryKey); If (dbProduct != null) { //update } else { //insert }
I keep getting: javax.jdo.JDOObjectNotFoundException: No such object FailedObject:2050000001574
The object is there but its throwing its toys? Leon van der Merwe Programmer Bytes Specialised Solutions
A
division of Bytes Technology Group SA (Pty) Ltd : Registration No:
2003/027603/07 E-Mail Disclaimer: http://www.altron.co.za/email.asp or phone: (+27) (11) 645-3600
|
