This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One-To-Many collection not updating

 
Faraz Ali
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have implemented a one-to-many birectional relationship. The class City maintains a collection of the instances of class Branch.

When i am doing any updates in the collection (like changed the branch address) and than calling merge on the City bean, the changes are reflected in the database.

But when i am removing an instance from the collection, and than calling merge on the City bean, its not deleting the branch from the db.

What's the reason? and how to fix it?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic