Skip to content

Commit

Permalink
HHH-12974 Fix a typo in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Sep 24, 2018
1 parent 5a2f12a commit 912225a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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]
----
Expand Down Expand Up @@ -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.
====
====

0 comments on commit 912225a

Please sign in to comment.