From eebb8fa2383f97ac7a86c625ca013d124a76dee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Mon, 14 Feb 2022 12:23:23 +0100 Subject: [PATCH] Clarify that quarkus.hibernate-orm.sql-load-script is necessarily in the application resources, not on the filesystem --- .../orm/deployment/HibernateOrmConfigPersistenceUnit.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java index c0018f9e2ab84..7843020debfab 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java @@ -43,8 +43,12 @@ public class HibernateOrmConfigPersistenceUnit { // @formatter:off /** - * Name of the file containing the SQL statements to execute when Hibernate ORM starts. - * Its default value differs depending on the Quarkus launch mode: + * Path to a file containing the SQL statements to execute when Hibernate ORM starts. + * + * The file is retrieved from the classpath resources, + * so it must be located in the resources directory (e.g. `src/main/resources`). + * + * The default value for this setting differs depending on the Quarkus launch mode: * * * In dev and test modes, it defaults to `import.sql`. * Simply add an `import.sql` file in the root of your resources directory