• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deleteing rows

 
Wendy Gibbons
Bartender
Posts: 1107
Eclipse IDE Oracle VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
Java Ruby Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic