https://github.com/eclipse-ee4j/jakartaee-tutorial/blob/master/src/main/asciidoc/persistence-intro/persistence-intro002.adoc#orphan-removal-in-relationships Document has this written: The following example will cascade the remove operation to the orphaned order entity when the customer entity is deleted: ``` @OneToMany(mappedBy="customer", orphanRemoval="true") public List<CustomerOrder> getOrders() { ... } ``` But it should be : The following example will cascade the remove operation to the orphaned order entity when the customer entity removes the order:
https://github.com/eclipse-ee4j/jakartaee-tutorial/blob/master/src/main/asciidoc/persistence-intro/persistence-intro002.adoc#orphan-removal-in-relationships
Document has this written:
The following example will cascade the remove operation to the orphaned order entity when the customer entity is deleted:
But it should be :
The following example will cascade the remove operation to the orphaned order entity when the customer entity removes the order: