Skip to content

Commit 4a3d3ba

Browse files
committed
fix a mistake in the documentation
1 parent 6616bde commit 4a3d3ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

documentation/src/main/asciidoc/introduction/Configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ As we mentioned <<testing,earlier>>, it can also be useful to control schema exp
433433
The link:{doc-javadoc-url}org/hibernate/relational/SchemaManager.html[`SchemaManager`] API allows programmatic control over schema export:
434434
435435
[source,java]
436-
sessionFactory.getSchemaManager().export(true);
436+
sessionFactory.getSchemaManager().create(true);
437437
====
438438

439439
[[logging-generated-sql]]

documentation/src/main/asciidoc/introduction/Introduction.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public class Main {
288288
.createEntityManagerFactory();
289289
290290
// export the inferred database schema
291-
sessionFactory.getSchemaManager().export(true);
291+
sessionFactory.getSchemaManager().create(true);
292292
293293
// persist an entity
294294
sessionFactory.inTransaction(session -> {
@@ -729,7 +729,7 @@ This option is especially convenient when writing tests.
729729

730730
[source,java]
731731
----
732-
sessionFactory.getSchemaManager().export(true);
732+
sessionFactory.getSchemaManager().create(true);
733733
----
734734

735735
Since executing DDL statements is very slow on many databases, we don't want to do this before every test.

0 commit comments

Comments
 (0)