You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Changed error message / log to avoid using the default data source
* Align FastBootHibernateReactivePersistenceProvider to FastBootHibernateReactivePersistenceProvider
Copy file name to clipboardExpand all lines: extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/HibernateReactiveProcessor.java
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -152,37 +152,43 @@ public void buildReactivePersistenceUnit(
152
152
"Cannot use persistence.xml with Hibernate Reactive in Quarkus. Must use application.properties instead.");
Copy file name to clipboardExpand all lines: extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/compatibility/ORMReactiveCompatbilityNamedDataSourceNamedPersistenceUnitBothUnitTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,10 @@ public class ORMReactiveCompatbilityNamedDataSourceNamedPersistenceUnitBothUnitT
35
35
.assertException(t -> assertThat(t)
36
36
.isInstanceOf(ConfigurationException.class)
37
37
.hasMessageContainingAll(
38
-
// Hibernate Reactive doesn't support explicitly setting the datasource (yet),
39
-
// so it will just notice the default datasource is not configured!
40
-
"The default datasource must be configured for Hibernate Reactive",
38
+
// Hibernate Reactive doesn't support named persistence unit
39
+
// so it will just notice the datasource is not configured!
40
+
// We probably need a better error message when named persistence unit is supported
41
+
"The datasource must be configured for Hibernate Reactive",
41
42
"Refer to https://quarkus.io/guides/datasource for guidance."));
Copy file name to clipboardExpand all lines: extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/datasource/EntitiesInDefaultPUWithExplicitDatasourceConfigActiveFalseTest.java
// Hibernate Reactive doesn't support explicitly setting the datasource (yet),
29
-
// so it will just notice the default datasource is not configured!
30
-
"The default datasource must be configured for Hibernate Reactive",
29
+
"Datasource 'ds-1' was deactivated through configuration properties. To activate the datasource, set configuration property 'quarkus.datasource.\"ds-1\".active' to 'true' and configure datasource 'ds-1'",
31
30
"Refer to https://quarkus.io/guides/datasource for guidance."));
Copy file name to clipboardExpand all lines: extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/datasource/EntitiesInDefaultPUWithExplicitDatasourceConfigUrlMissingTest.java
// Hibernate Reactive doesn't support explicitly setting the datasource (yet),
30
-
// so it will just notice the default datasource is not configured!
31
-
"The default datasource must be configured for Hibernate Reactive",
31
+
// so it will just notice the datasource is not configured!
32
+
"Datasource 'ds-1' was deactivated automatically because its URL is not set. To activate the datasource, set configuration property 'quarkus.datasource.\"ds-1\".reactive.url'",
32
33
"Refer to https://quarkus.io/guides/datasource for guidance."));
Copy file name to clipboardExpand all lines: extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/datasource/EntitiesInDefaultPUWithExplicitDatasourceMissingTest.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,8 @@ public class EntitiesInDefaultPUWithExplicitDatasourceMissingTest {
31
31
.isInstanceOf(ConfigurationException.class)
32
32
.hasMessageContainingAll(
33
33
// Hibernate Reactive doesn't support explicitly setting the datasource (yet),
34
-
// so it will just notice the default datasource is not configured!
35
-
"The default datasource must be configured for Hibernate Reactive",
34
+
// so it will just notice the datasource is not configured!
35
+
"The datasource must be configured for Hibernate Reactive",
36
36
"Refer to https://quarkus.io/guides/datasource for guidance."));
Copy file name to clipboardExpand all lines: extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/datasource/EntitiesInDefaultPUWithImplicitDatasourceConfigUrlMissingTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ public class EntitiesInDefaultPUWithImplicitDatasourceConfigUrlMissingTest {
30
30
.assertException(t -> assertThat(t)
31
31
.isInstanceOf(ConfigurationException.class)
32
32
.hasMessageContainingAll(
33
-
"The default datasource must be configured for Hibernate Reactive",
33
+
"The datasource must be configured for Hibernate Reactive",
34
34
"Refer to https://quarkus.io/guides/datasource for guidance."));
0 commit comments