You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2022/04/25 09:00:36 UTC

[isis] branch master updated: ISIS-3021: fixes flipped message templates

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 233a10a33b ISIS-3021: fixes flipped message templates
233a10a33b is described below

commit 233a10a33b395ced3c653a21ba352d3db1c7be6f
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Apr 25 09:54:10 2022 +0200

    ISIS-3021: fixes flipped message templates
---
 .../isis/core/config/progmodel/ProgrammingModelConstants.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/core/config/src/main/java/org/apache/isis/core/config/progmodel/ProgrammingModelConstants.java b/core/config/src/main/java/org/apache/isis/core/config/progmodel/ProgrammingModelConstants.java
index 3d7d51741a..a0fbed54ca 100644
--- a/core/config/src/main/java/org/apache/isis/core/config/progmodel/ProgrammingModelConstants.java
+++ b/core/config/src/main/java/org/apache/isis/core/config/progmodel/ProgrammingModelConstants.java
@@ -443,15 +443,15 @@ public final class ProgrammingModelConstants {
         VIEWMODEL_MISSING_DESERIALIZING_CONSTRUCTOR(
                 "${type}: ViewModel contract violation: missing single (String) arg constructor "
                 + "(for de-serialization from memento string)."),
-        DOMAIN_OBJECT_MISSING_A_NAMESPACE("${type}: the service type must declare a namespace, "
+        DOMAIN_OBJECT_MISSING_A_NAMESPACE("${type}: the object type must declare a namespace, "
+                + "yet there was none found in '${logicalTypeName}'; "
+                + "eg. @DomainObject(logicalTypeName=\"Customer\") is considered invalid, "
+                + "whereas @DomainObject(logicalTypeName=\"sales.Customer\") is valid."),
+        DOMAIN_SERVICE_MISSING_A_NAMESPACE("${type}: the service type must declare a namespace, "
                 + "yet there was none found in '${logicalTypeName}'; "
                 + "Spring supports various naming strategies @Named(...) being one of them, "
                 + "where eg. @Named(\"CustomerService\") is considered invalid, "
                 + "whereas @Named(\"sales.CustomerService\") is valid."),
-        DOMAIN_SERVICE_MISSING_A_NAMESPACE("${type}: the object type must declare a namespace, "
-                + "yet there was none found in '${logicalTypeName}'; "
-                + "eg. @DomainObject(logicalTypeName=\"Customer\") is considered invalid, "
-                + "whereas @DomainObject(logicalTypeName=\"sales.Customer\") is valid."),
         ;
         private final String template;
         public String getMessage(final Identifier featureIdentifier) {