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 #295

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ If `orphanRemoval` is set to `true`, the line item entity will be deleted when t

The `orphanRemoval` attribute in `@OneToMany` and `@oneToOne` takes a Boolean value and is by default false.

The following example will cascade the remove operation to the orphaned `order` entity when the `customer` entity is deleted:
The following example will cascade the remove operation to the orphaned `order` entity when the `customer` entity removes the order:

[source,java]
----
Expand Down