• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deleting from a One-To-Many

Eric Nielsen
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I seem to be unable to get Hibernate to persist the removal of an item from a collection. I'm sure its something simple, but I haven't been able to figure it out.



application code

(repository.save(entrant) == getSession().saveOrUpdate(entrant) )

Looking at the entrant being passed to saveOrUpdate, the entries collection is marked as dirty and is correct (one item has been removed). No SQL is generated. No Errors are generated.

What am I overlooking?
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!