• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deleting from a One-To-Many

 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic