• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deleting from a One-To-Many  RSS feed

 
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.

Entrant.java


Entry.java


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