I have a "festival" entity that is related to a "merchant" (many to one) and the merchant is related to "category" (many to one)
In one of my pages, I load all categories then get list of merchants for it and after the user chooses favorite merchant then I load merchants festivals list. finally when the user deletes favorite festival I remove it with : em.remove()
but the deleted festival is still existing in the Merchant's festival list and also category.merchantList(n).festival(m) !
so when i reload the page I find the deleted festival while its not in database anymore !
so how should I update the merchant and category entities?!