Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deleteing rows
 
Similar Threads
using 2 @OnetoMany annoations in one Entity Class
Reading All the records from a table + Hibernate
No mapped data?
Orphan delete doesn't seem to be working properly
OneToOne composite key