aspose 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 Spring in Action this week in the Spring 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: deleteing rows