orphanRemoval « Map « JPA Q&A





1. JPA2 Lazy Child Collection with orphanRemoval=true deletes 'not-fetched' children    stackoverflow.com

I have a Parent entity that owns(via mappedBy) a FetchType.LAZY Set<Child> with orphanDelete=true. A client can happily add and remove child rows via the parent's collection getter and their changes ...