Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Description of orphan-removal example looks incorrect #291

@paathak

Description

@paathak

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions