Document @OnDelete behavior in regards to disabling the Persistence Context entity removal cascading event

Description

The @OnDelete annotation is used by the hbm2ddl tool to generate an ON CASCADE clause to the associated FK.

However, a lesser-known behavior is the disabling of the Persistence Context entity removal cascading event.

Also, a test case should be added to validate the logic.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure