This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
Merge operation does not remove from db dependent objects?
posted 4 years ago
I have two tables: Persons and addresses associated to persons by a foreign key.
When I add a new address to a person the addessesCollection object and the visual object (JSF) updates and the merge operation regularly add a new row to the addresses table of database.
BUT if I remove an existing address, again the addessesCollection object and the visual object (JSF) updates, but the merge operation instead has no effect on addresses table, and the database remain unchanged.
Is there any error in my code or it is a normal feature of merge? And if so, how I can delete the database row according the addressesCollection (to align to)?