Skip to content

Commit 8fe2811

Browse files
committed
Change the database.generation to schema-management.strategy in the docs
1 parent 1244183 commit 8fe2811

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/src/main/asciidoc/hibernate-orm-panache.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ quarkus.datasource.password = connor
127127
quarkus.datasource.jdbc.url = jdbc:postgresql://localhost:5432/mydatabase
128128
129129
# drop and create the database at startup (use `update` to only update the schema)
130-
quarkus.hibernate-orm.database.generation = drop-and-create
130+
quarkus.hibernate-orm.schema-management.strategy = drop-and-create
131131
----
132132

133133
== Solution 1: using the active record pattern

docs/src/main/asciidoc/hibernate-orm.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ Or if you use a database schema migration tool like xref:flyway.adoc[Flyway] or
792792
With this approach when making changes to an entity, make sure to adapt the database schema accordingly;
793793
you could also use `validate` to have Hibernate verify the schema matches its expectations.
794794

795-
WARNING: Do not use `quarkus.hibernate-orm.database.generation` `drop-and-create` and `update` in your production environment.
795+
WARNING: Do not use `quarkus.hibernate-orm.schema-management.strategy` `drop-and-create` and `update` in your production environment.
796796

797797

798798
These approaches become really powerful when combined with Quarkus configuration profiles.
@@ -803,13 +803,13 @@ This is great because you can define different combinations of Hibernate ORM pro
803803
[source,properties]
804804
.application.properties
805805
----
806-
%dev.quarkus.hibernate-orm.database.generation = drop-and-create
806+
%dev.quarkus.hibernate-orm.schema-management.strategy = drop-and-create
807807
%dev.quarkus.hibernate-orm.sql-load-script = import-dev.sql
808808
809-
%dev-with-data.quarkus.hibernate-orm.database.generation = update
809+
%dev-with-data.quarkus.hibernate-orm.schema-management.strategy = update
810810
%dev-with-data.quarkus.hibernate-orm.sql-load-script = no-file
811811
812-
%prod.quarkus.hibernate-orm.database.generation = none
812+
%prod.quarkus.hibernate-orm.schema-management.strategy = none
813813
%prod.quarkus.hibernate-orm.sql-load-script = no-file
814814
----
815815

@@ -838,7 +838,7 @@ Add the following in your properties file.
838838
[source,properties]
839839
.application.properties
840840
----
841-
%prod.quarkus.hibernate-orm.database.generation = none
841+
%prod.quarkus.hibernate-orm.schema-management.strategy = none
842842
%prod.quarkus.hibernate-orm.sql-load-script = no-file
843843
----
844844

docs/src/main/asciidoc/hibernate-reactive-panache.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ quarkus.datasource.password = connor
125125
quarkus.datasource.reactive.url = vertx-reactive:postgresql://localhost:5432/mydatabase
126126
127127
# drop and create the database at startup (use `update` to only update the schema)
128-
quarkus.hibernate-orm.database.generation = drop-and-create
128+
quarkus.hibernate-orm.schema-management.strategy = drop-and-create
129129
----
130130

131131
== Solution 1: using the active record pattern

extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitSchemaManagerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class SinglePersistenceUnitSchemaManagerTest {
2525
.withApplicationRoot((jar) -> jar
2626
.addClass(DefaultEntity.class)
2727
.addAsResource("application.properties"))
28-
.overrideConfigKey("quarkus.hibernate-orm.database.generation", "none");
28+
.overrideConfigKey("quarkus.hibernate-orm.database.schema-management.strategy", "none");
2929
@Inject
3030
SchemaManager schemaManager;
3131

0 commit comments

Comments
 (0)