diff --git a/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc b/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc index 28d7abe86f..e28d95d06a 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc @@ -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. -==== \ No newline at end of file +====