quarkus-for-spring-developers / examples

Example code for the Quarkus for Spring Developers eBook
https://red.ht/quarkus-spring-devs
Apache License 2.0
46 stars 17 forks source link

Chapter 6: quarkus-rest-database: dev mode doesn't work #90

Closed edeandrea closed 3 years ago

edeandrea commented 3 years ago

Sub-issue of quarkus-for-spring-developers/project-management#29

When running ./mvnw quarkus:dev the application does not start up because, in application.properties, quarkus.hibernate-orm.database.generation is set to validate.

Either dev services should be configured to an appropriate image (quarkus.datasource.devservices.image-name=quay.io/edeandrea/postgres-13-fruits:latest), or quarkus.hibernate-orm.database.generation should be set to drop-and-create.

I don't really have a strong opinion @aureamunoz / @cmoulliard , although all the examples in Chapter 4 use quarkus.hibernate-orm.database.generation=validate while setting quarkus.datasource.devservices.image-name=quay.io/edeandrea/postgres-13-fruits:latest. Maybe we should do that for consistency?

aureamunoz commented 3 years ago

Ok, yes, in that case I would do it with quarkus.hibernate-orm.database.generation=validate && quarkus.datasource.devservices.image-name=quay.io/edeandrea/postgres-13-fruits:latest.

So we need to add that property to the file. PR is coming...