Hyun
Hyun

Reputation: 606

How can I set hibernate-orm.database.generation and create-schemas in application.yaml

I'm new in Quarkus. I am writing config file in yaml, but got stuck because of this config.

In Quarkus doc, I am seeing these config and I need to configure them.

quarkus.hibernate-orm.database.generation=drop-and-create
quarkus.hibernate-orm.database.generation.create-schemas=true

I'm not sure how can I make yaml same ?

quarkus:
  hibernate-orm:
    database:
      generation: drop-and-create # < this one is string and object at the same time...
        create-schemas: true

Upvotes: 0

Views: 2923

Answers (1)

Davide D&#39;Alto
Davide D&#39;Alto

Reputation: 8206

You can use ~:

quarkus:
  hibernate-orm:
    database:
      generation:
        ~: drop-and-create
        create-schemas: true

You can find more details in the documentation: Configuration key conflicts

Upvotes: 2

Related Questions