Register / Login
Win a copy of
Java XML & JSON
this week in the
XML and Related Technologies
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
orphan child for Many To Many mappings
posted 1 week ago
One to one and one to many relationships, if a parent has been deleted, you can set orphanRemoval true. Will delete the orphan child.
But it seems there is to no way within JPA to remove the orphan for a many to many parent.
I feel the best way is to periodically run amother programme on the DB itself dedicated to removing orphans
Is this the best possible soultion.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
Boost this thread!
EJB 3.0 JPA & Hibernate One-to-Many leaves orphan children?
Hibernate JPA and orphan deletion
Delete orphan object problem
retrieving object hierarchy - many-to-one?
Updating child DTO object and @MapsId