File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes deleteing rows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "deleteing rows" Watch "deleteing rows" New topic
Author

deleteing rows

Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

i am trying to delete rows i will include everything i can think of (so sorry it is so long)

why is it trying to do an update when i am trying to delete?

Edit: it has just occured to me orderId isn't even in my bean, so where did it get it from


the beans:


This is all the columns

my delete

and finally the error message
Pierre Sugar
Ranch Hand

Joined: Dec 08, 2002
Posts: 62

The error message says that your orderId is null. Is it possible that you create an object without saving it to database and afterwards deleting it. This would explain why your orderId is null.


Pierre
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: deleteing rows