File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "deleteing rows" Watch "deleteing rows" New topic

deleteing rows

Wendy Gibbons

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.

I agree. Here's the link:
subject: deleteing rows
It's not a secret anymore!