diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitUtil.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitUtil.java index fe48a85363c3f..8c0d3306e4711 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitUtil.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitUtil.java @@ -70,7 +70,7 @@ public static InjectableInstance legacySingleExtensionInstanceForPersiste + " This is deprecated usage and will not work in future versions of Quarkus." + " Annotate this bean with @%2$s(\"%4$s\") instead of @%3$s(\"%4$s\") to make it future-proof.", beanType.getName(), PersistenceUnitExtension.class.getSimpleName(), - PersistenceUnit.class.getSimpleName()); + PersistenceUnit.class.getSimpleName(), persistenceUnitName); } } }