• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot delete from collection mapping Hibernate

 
Dekel Yaacov
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a problem with map inside by entity.

When I remove a key from the map and try to save, I get an exception
because the hibernate tries to update the columns with null.
Why does it call update instead of deleting the row?

Thanks
DY
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"DY", please check your private messages.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!