Skip to content

Commit 711452c

Browse files
authored
Merge pull request #46030 from tobHai/hibernate-multi-tenancy-quickstart
Update Hibernate multi-tenancy quickstart documentation
2 parents 0d2bdfb + c293864 commit 711452c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ Jump over to xref:datasource.adoc[Quarkus - Datasources] for all details.
10821082

10831083
Quarkus currently supports the link:{hibernate-orm-docs-url}#multitenacy-separate-database[separate database] approach, the link:{hibernate-orm-docs-url}#multitenacy-separate-schema[separate schema] approach and the link:{hibernate-orm-docs-url}#multitenacy-discriminator[discriminator] approach.
10841084

1085-
To see multitenancy in action, you can check out the link:{quickstarts-tree-url}/hibernate-orm-multi-tenancy-quickstart[hibernate-orm-multi-tenancy-quickstart] quickstart.
1085+
To see multitenancy in action, you can check out the link:{quickstarts-tree-url}/hibernate-orm-multi-tenancy-schema-quickstart[hibernate-orm-multi-tenancy-schema-quickstart] or link:{quickstarts-tree-url}/hibernate-orm-multi-tenancy-database-quickstart[hibernate-orm-multi-tenancy-database-quickstart].
10861086

10871087
=== Writing the application
10881088

@@ -1210,7 +1210,7 @@ quarkus.hibernate-orm.multitenant=SCHEMA <2>
12101210
quarkus.datasource.db-kind=postgresql <3>
12111211
quarkus.datasource.username=quarkus_test
12121212
quarkus.datasource.password=quarkus_test
1213-
quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/quarkus_test
1213+
%prod.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/quarkus_test
12141214
12151215
quarkus.flyway.schemas=base,mycompany <4>
12161216
quarkus.flyway.locations=classpath:schema
@@ -1278,15 +1278,15 @@ quarkus.hibernate-orm.datasource=base <3>
12781278
quarkus.datasource.base.db-kind=postgresql <4>
12791279
quarkus.datasource.base.username=quarkus_test
12801280
quarkus.datasource.base.password=quarkus_test
1281-
quarkus.datasource.base.jdbc.url=jdbc:postgresql://localhost:5432/quarkus_test
1281+
%prod.quarkus.datasource.base.jdbc.url=jdbc:postgresql://localhost:5432/quarkus_test
12821282
quarkus.flyway.base.locations=classpath:database/base <5>
12831283
quarkus.flyway.base.migrate-at-start=true
12841284
12851285
# Tenant 'mycompany'
12861286
quarkus.datasource.mycompany.db-kind=postgresql <6>
12871287
quarkus.datasource.mycompany.username=mycompany
12881288
quarkus.datasource.mycompany.password=mycompany
1289-
quarkus.datasource.mycompany.jdbc.url=jdbc:postgresql://localhost:5433/mycompany
1289+
%prod.quarkus.datasource.mycompany.jdbc.url=jdbc:postgresql://localhost:5433/mycompany
12901290
quarkus.flyway.mycompany.locations=classpath:database/mycompany <7>
12911291
quarkus.flyway.mycompany.migrate-at-start=true
12921292
----

0 commit comments

Comments
 (0)