Closed Postremus closed 2 years ago
/cc @DavideD, @Sanne, @gavinking, @gsmet, @mswatosh, @yrodiere
You instructed Hibernate ORM to "drop and create" the schema, and the schema did not exist. So Hibernate ORM tried to drop the schema, it failed, and Hibernate ORM warned you that the dropping failed. Then it went on an created the schema, and everything should work fine,
We're aware these log messages are confusing, and this has already been reported here: https://github.com/quarkusio/quarkus/issues/16204
Please continue the conversation on that other ticket, or add a message here if you think yours is a different problem.
Closing as duplicate.
Duplicates #16204
Describe the bug
I have multiple entities declaring database schemas.
This works when I run against a database, where the schemas are already present (e.g. created by liquibase).
I now want to test this code, and wrote a simple test as starting point:
The tests run against a postgresql started by devservices. This test passes since it is only persisting a simple entity.
The schema was not created, according to the logs (see below).
I have following in my application.properties
Expected behavior
Test should should not log warnings.
Actual behavior
How to Reproduce?
Reproducer: orm-schema-creation.zip
Output of
uname -a
orver
Microsoft Windows [Version 10.0.19044.1706]
Output of
java -version
openjdk 18.0.1 2022-04-19 OpenJDK Runtime Environment Temurin-18.0.1+10 (build 18.0.1+10) OpenJDK 64-Bit Server VM Temurin-18.0.1+10 (build 18.0.1+10, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.9.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: C:\eclipse\tools\java\maven Java version: 18.0.1, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\18 Default locale: de_DE, platform encoding: UTF-8 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response