Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Description of orphan-removal example looks incorrect #291

Open
paathak opened this issue Nov 1, 2023 · 0 comments
Open

Description of orphan-removal example looks incorrect #291

paathak opened this issue Nov 1, 2023 · 0 comments

Comments

@paathak
Copy link

paathak commented Nov 1, 2023

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:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant