HHH-12974 Fix a typo in the documentation
This commit is contained in:
parent
5a2f12a9a8
commit
912225a766
|
@ -863,7 +863,7 @@ The `@OnDelete` annotation can also be placed on a collection, as
|
|||
illustrated in the following example.
|
||||
|
||||
[[pc-cascade-on-delete-collection-mapping-example]]
|
||||
.`@OnDelete` `One@ToMany` mapping
|
||||
.`@OnDelete` `@OneToMany` mapping
|
||||
====
|
||||
[source, JAVA, indent=0]
|
||||
----
|
||||
|
@ -898,4 +898,4 @@ Without the `@OnDelete` annotation, the `@OneToMany` association relies on the `
|
|||
However, when the `@OnDelete` annotation is in place, Hibernate prevents the child entity `DELETE` statement from being executed while flushing the Persistence Context.
|
||||
|
||||
This way, only the parent entity gets deleted, and all the associated child records are removed by the database engine, instead of being deleted explicitly via `DELETE` statements.
|
||||
====
|
||||
====
|
||||
|
|
Loading…
Reference in New Issue