• Post Reply Bookmark Topic Watch Topic
  • New Topic

Delete rows with a subroget key as primary key

 
Hamzah khammash
Greenhorn
Posts: 23
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I have table in database that its primary key is incremented from sequence now in my jpa code i need to delete the row but because the primary key at this stage is null i cann't get the row ,
so anyone have suggestions /
 
James Sutherland
Ranch Hand
Posts: 553
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure how the id could be null if the row exists? Perhaps include your code.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!