You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2023/03/23 22:55:06 UTC

[causeway] 01/02: CAUSEWAY-2485: @DomainObject#aliased

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

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

commit b0619303c966b7a271ed39cd4adefb2634a7253b
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Mar 22 08:25:34 2023 +0000

    CAUSEWAY-2485: @DomainObject#aliased
---
 .../src/main/java/demoapp/dom/DemoModuleJpa.java   |  3 +
 ...actions.java => ExposePersistedExecutions.java} |  2 +-
 ...=> ExposePersistedExecutions_interactions.java} |  4 +-
 .../ActionExecutionPublishingEntity.java           |  4 +-
 .../DomainObject/aliased/Address.java}             | 33 +++++------
 .../DomainObject/aliased/AddressSeeding.java}      | 25 ++++++---
 .../aliased/DomainObjectAliasedVm-description.adoc | 19 +++++--
 .../aliased/DomainObjectAliasedVm.layout.xml       |  2 +-
 .../aliased/DomainObjectAliasedVm_addresses.java   | 30 ++++++++++
 .../AddressJpa-description.adoc}                   | 14 ++---
 .../DomainObject/aliased/jpa/AddressJpa.java       | 64 ++++++++++++++++++++++
 .../aliased/jpa/AddressJpaEntities.java}           | 28 +++++++---
 .../StatefulVmJaxbRefsEntity.layout.xml            |  1 +
 .../PropertyExecutionPublishingEntity.java         |  4 +-
 examples/demo/domain/src/main/resources/banner.txt |  4 +-
 15 files changed, 181 insertions(+), 56 deletions(-)

diff --git a/examples/demo/domain/src/main/java/demoapp/dom/DemoModuleJpa.java b/examples/demo/domain/src/main/java/demoapp/dom/DemoModuleJpa.java
index 516202512a..b66f6dfe5d 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/DemoModuleJpa.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/DemoModuleJpa.java
@@ -28,6 +28,7 @@ import org.apache.causeway.persistence.jpa.eclipselink.CausewayModulePersistence
 
 import demoapp.dom.domain.actions.Action.commandPublishing.jpa.ActionCommandPublishingJpa;
 import demoapp.dom.domain.actions.Action.executionPublishing.jpa.ActionExecutionPublishingJpa;
+import demoapp.dom.domain.objects.DomainObject.aliased.jpa.AddressJpa;
 import demoapp.dom.domain.objects.DomainObject.entityChangePublishing.annotated.disabled.jpa.DomainObjectEntityChangePublishingDisabledJpa;
 import demoapp.dom.domain.objects.DomainObject.entityChangePublishing.annotated.enabled.jpa.DomainObjectEntityChangePublishingEnabledJpa;
 import demoapp.dom.domain.objects.DomainObject.entityChangePublishing.metaAnnot.enabled.jpa.DomainObjectEntityChangePublishingEnabledMetaAnnotatedJpa;
@@ -91,6 +92,8 @@ import demoapp.dom.types.primitive.shorts.jpa.PrimitiveShortJpa;
 })
 @EntityScan(basePackageClasses = {
 
+        AddressJpa.class,
+
         CausewayBlobJpa.class,
         CausewayClobJpa.class,
         CausewayLocalResourcePathJpa.class,
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedExecutions.java
similarity index 95%
copy from examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java
copy to examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedExecutions.java
index 69da83967b..d4a9f4011e 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedExecutions.java
@@ -22,6 +22,6 @@ package demoapp.dom.domain._interactions;
  * Marker interface for mixins to contribute to.
  */
 //tag::class[]
-public interface ExposePersistedInteractions {
+public interface ExposePersistedExecutions {
 }
 //end::class[]
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions_interactions.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedExecutions_interactions.java
similarity index 93%
rename from examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions_interactions.java
rename to examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedExecutions_interactions.java
index bbfb521df0..72588304db 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions_interactions.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedExecutions_interactions.java
@@ -33,12 +33,12 @@ import lombok.val;
 //tag::class[]
 @Collection
 @RequiredArgsConstructor
-public class ExposePersistedInteractions_interactions {
+public class ExposePersistedExecutions_interactions {
     // ...
 //end::class[]
 
     @SuppressWarnings("unused")
-    private final ExposePersistedInteractions exposePersistedInteractions;
+    private final ExposePersistedExecutions exposePersistedExecutions;
 
 //tag::class[]
     public List<InteractionDtoVm> coll() {
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/executionPublishing/ActionExecutionPublishingEntity.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/executionPublishing/ActionExecutionPublishingEntity.java
index 5414821f43..eec4ce362b 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/executionPublishing/ActionExecutionPublishingEntity.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/executionPublishing/ActionExecutionPublishingEntity.java
@@ -24,14 +24,14 @@ import org.apache.causeway.applib.annotation.DomainObject;
 
 import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
 import demoapp.dom._infra.values.ValueHolder;
-import demoapp.dom.domain._interactions.ExposePersistedInteractions;
+import demoapp.dom.domain._interactions.ExposePersistedExecutions;
 
 @Named("demo.ActionExecutionPublishingEntity") // shared permissions with concrete sub class
 @DomainObject
 public abstract class ActionExecutionPublishingEntity
 implements
     HasAsciiDocDescription,
-        ExposePersistedInteractions,
+        ExposePersistedExecutions,
     ValueHolder<String> {
 
     @Override
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/executionPublishing/ActionExecutionPublishingEntity.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/Address.java
similarity index 58%
copy from examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/executionPublishing/ActionExecutionPublishingEntity.java
copy to examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/Address.java
index 5414821f43..b7dff7b0fb 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/executionPublishing/ActionExecutionPublishingEntity.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/Address.java
@@ -16,36 +16,29 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.actions.Action.executionPublishing;
+package demoapp.dom.domain.objects.DomainObject.aliased;
+
+import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import demoapp.dom._infra.values.ValueHolder;
 
 import javax.inject.Named;
 
 import org.apache.causeway.applib.annotation.DomainObject;
 
-import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
-import demoapp.dom._infra.values.ValueHolder;
-import demoapp.dom.domain._interactions.ExposePersistedInteractions;
-
-@Named("demo.ActionExecutionPublishingEntity") // shared permissions with concrete sub class
+@SuppressWarnings("CdiManagedBeanInconsistencyInspection")
+@Named("address.Address") // shared permissions with concrete sub class
 @DomainObject
-public abstract class ActionExecutionPublishingEntity
-implements
-    HasAsciiDocDescription,
-        ExposePersistedInteractions,
-    ValueHolder<String> {
+public abstract class Address
+        implements
+        HasAsciiDocDescription,
+        ValueHolder<String> {
 
     @Override
     public String value() {
-        return getProperty();
+        return getAddressLine();
     }
 
-    protected abstract String getProperty();
-    protected abstract void setProperty(String value);
-
-    protected abstract String getPropertyMetaAnnotated();
-    protected abstract void setPropertyMetaAnnotated(String value);
-
-    protected abstract String getPropertyMetaAnnotatedOverridden();
-    protected abstract void setPropertyMetaAnnotatedOverridden(String value);
+    public abstract String getAddressLine();
+    public abstract void setAddressLine(String value);
 
 }
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/AddressSeeding.java
similarity index 64%
copy from examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java
copy to examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/AddressSeeding.java
index 69da83967b..ee55809bee 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/AddressSeeding.java
@@ -16,12 +16,23 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain._interactions;
+package demoapp.dom.domain.objects.DomainObject.aliased;
+
+import demoapp.dom._infra.seed.SeedServiceAbstract;
+import demoapp.dom._infra.values.ValueHolderRepository;
+
+import javax.inject.Inject;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class AddressSeeding
+extends SeedServiceAbstract {
+
+    @Inject
+    public AddressSeeding(
+            ValueHolderRepository<String, ? extends Address> entities) {
+        super(entities);
+    }
 
-/**
- * Marker interface for mixins to contribute to.
- */
-//tag::class[]
-public interface ExposePersistedInteractions {
 }
-//end::class[]
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm-description.adoc b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm-description.adoc
index 74ade101f8..5138ae337e 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm-description.adoc
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm-description.adoc
@@ -1,10 +1,21 @@
 :Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
 
-The `aliased` attribute ...
+Every domain type has a logical type name which is typically specified using `@javax.inject.Named` annotation.
+The logical type name is used to construct https://causeway.apache.org/refguide/2.0.0-SNAPSHOT/applib/index/services/bookmark/Bookmark.html[Bookmark]s for domain objects, and is used to identify action invocations, for example as defined by the https://causeway.apache.org/refguide/2.0.0-SNAPSHOT/schema/cmd.html[cmd] and https://causeway.apache.org/refguide/2.0.0-SNAPSHOT/schema/ixn.html[ixn] schemas and in the callback methods of https://causeway.apache.org/refguide/2.0.0-SNAPSHOT/applib [...]
 
-WARNING: TODO[CAUSEWAY-3312]
-Alternative logical type name(s) for the annotated type.
-also perhaps explain the @Named annotation ...
+The logical type name is distinct from the physical Java class name so that the code itself can be refactored without breaking the above contracts.
 
+Sometimes though there may be good reasons to change the logical type name.
+Perhaps the domain class has to be moved from one module to another, and you would prefer that the logical type name reflects the module.
+
+The purpose of the link:https://causeway.apache.org/refguide/2.0.0-SNAPSHOT/applib/index/annotation/DomainObject.html#aliased[@DomainObject#aliased] attribute is to record additional logical type names, so that the main logical type name can be changed.
+
+For example, suppose an `Address` type initially is part of the "customer" module and its original logical type name is "customer.Address".
+Later on, you decide to move `Address` to its own "address" module, with a new logical type name being "address.Address".
+However, any bookmarks in the old format of "customer.Address:1234" should still resolve.
+
+=== Explanation of this Demo
+
+The collection on the left shows a set of `Address` entity instances.
 
 
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm.layout.xml b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm.layout.xml
index b4f853de75..81cf19a8e3 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm.layout.xml
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm.layout.xml
@@ -27,6 +27,7 @@
 	<bs3:row>
 		<bs3:col span="6">
 			<cpt:fieldSet name="Other" id="other" unreferencedProperties="true"/>
+			<cpt:collection id="addresses"/>
 		</bs3:col>
 		<bs3:col span="6">
 			<cpt:fieldSet name="Description" id="description" >
@@ -36,7 +37,6 @@
 				<cpt:action id="downloadMetamodelXml"  position="PANEL_DROPDOWN"/>
 				<cpt:action id="inspectMetamodel"  position="PANEL_DROPDOWN"/>
                 <cpt:action id="recentCommands"  position="PANEL_DROPDOWN"/>
-				<cpt:action id="downloadJdoMetadata"  position="PANEL_DROPDOWN"/>
 				<cpt:action id="openRestApi" position="PANEL_DROPDOWN" />
 				<cpt:property id="description"/>
 			</cpt:fieldSet>
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm_addresses.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm_addresses.java
new file mode 100644
index 0000000000..b39e7c1668
--- /dev/null
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm_addresses.java
@@ -0,0 +1,30 @@
+package demoapp.dom.domain.objects.DomainObject.aliased;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import lombok.RequiredArgsConstructor;
+
+import java.util.List;
+
+import javax.inject.Inject;
+
+import org.apache.causeway.applib.annotation.Collection;
+import org.apache.causeway.applib.annotation.CollectionLayout;
+import org.apache.causeway.applib.annotation.MemberSupport;
+
+@Collection()
+@CollectionLayout(paged = 3)
+@RequiredArgsConstructor
+public class DomainObjectAliasedVm_addresses {
+
+    @SuppressWarnings("unused")
+    private final DomainObjectAliasedVm mixee;
+
+    @MemberSupport
+    public List<? extends Address> coll() {
+        return addressEntities.all();
+    }
+
+    @Inject
+    ValueHolderRepository<String, ? extends Address> addressEntities;
+
+}
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm-description.adoc b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpa-description.adoc
similarity index 82%
copy from examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm-description.adoc
copy to examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpa-description.adoc
index 74ade101f8..998ac9ace5 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/DomainObjectAliasedVm-description.adoc
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpa-description.adoc
@@ -1,10 +1,8 @@
 :Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
 
-The `aliased` attribute ...
-
-WARNING: TODO[CAUSEWAY-3312]
-Alternative logical type name(s) for the annotated type.
-also perhaps explain the @Named annotation ...
-
-
-
+[source,java,indent=0]
+----
+include::AddressJpa.java[tags=class]
+----
+<.> current logical type name
+<.> previous logical type names
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpa.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpa.java
new file mode 100644
index 0000000000..a047b63434
--- /dev/null
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpa.java
@@ -0,0 +1,64 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package demoapp.dom.domain.objects.DomainObject.aliased.jpa;
+
+import demoapp.dom.domain.objects.DomainObject.aliased.Address;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
+
+import javax.inject.Named;
+import javax.persistence.*;
+
+import org.apache.causeway.applib.annotation.DomainObject;
+import org.apache.causeway.persistence.jpa.applib.integration.CausewayEntityListener;
+import org.springframework.context.annotation.Profile;
+
+@Profile("demo-jpa")
+//tag::class[]
+@Entity
+@Table(
+    schema = "demo",
+    name = "AddressJpa"
+)
+@EntityListeners(CausewayEntityListener.class)
+@Named("address.Address")               // <.>
+@DomainObject(
+        aliased = {"customer.Address"}  // <.>
+)
+@NoArgsConstructor
+public class AddressJpa extends Address {
+    // ...
+//end::class[]
+
+    public AddressJpa(String value) {
+        setAddressLine(value);
+    }
+
+    @Id
+    @GeneratedValue
+    private Long id;
+
+    @Getter @Setter
+    private String addressLine;
+
+
+//tag::class[]
+}
+//end::class[]
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpaEntities.java
similarity index 55%
rename from examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java
rename to examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpaEntities.java
index 69da83967b..08e0e0ba87 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/_interactions/ExposePersistedInteractions.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/aliased/jpa/AddressJpaEntities.java
@@ -16,12 +16,26 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain._interactions;
+package demoapp.dom.domain.objects.DomainObject.aliased.jpa;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import demoapp.dom.domain.objects.DomainObject.entityChangePublishing.annotated.disabled.jpa.DomainObjectEntityChangePublishingDisabledJpa;
+
+import org.springframework.context.annotation.Profile;
+import org.springframework.stereotype.Service;
+
+@Profile("demo-jpa")
+@Service
+public class AddressJpaEntities
+extends ValueHolderRepository<String, AddressJpa> {
+
+    protected AddressJpaEntities() {
+        super(AddressJpa.class);
+    }
+
+    @Override
+    protected AddressJpa newDetachedEntity(String value) {
+        return new AddressJpa(value);
+    }
 
-/**
- * Marker interface for mixins to contribute to.
- */
-//tag::class[]
-public interface ExposePersistedInteractions {
 }
-//end::class[]
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/nature/viewmodels/jaxbrefentity/StatefulVmJaxbRefsEntity.layout.xml b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/nature/viewmodels/jaxbrefentity/StatefulVmJaxbRefsEntity.layout.xml
index 94cc9f8b05..6182d7eeb3 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/nature/viewmodels/jaxbrefentity/StatefulVmJaxbRefsEntity.layout.xml
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObject/nature/viewmodels/jaxbrefentity/StatefulVmJaxbRefsEntity.layout.xml
@@ -34,6 +34,7 @@
 			<cpt:fieldSet name="Description" id="description" >
 				<cpt:action id="clearHints" position="PANEL" />
 				<cpt:action id="downloadLayoutXml"  position="PANEL_DROPDOWN"/>
+				<cpt:action id="rebuildMetamodel" position="PANEL"/>
 				<cpt:action id="downloadMetamodelXml"  position="PANEL_DROPDOWN"/>
 				<cpt:action id="inspectMetamodel"  position="PANEL_DROPDOWN"/>
                 <cpt:action id="recentCommands"  position="PANEL_DROPDOWN"/>
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/domain/properties/Property/executionPublishing/PropertyExecutionPublishingEntity.java b/examples/demo/domain/src/main/java/demoapp/dom/domain/properties/Property/executionPublishing/PropertyExecutionPublishingEntity.java
index 21707736b7..6f32b13e77 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/domain/properties/Property/executionPublishing/PropertyExecutionPublishingEntity.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/properties/Property/executionPublishing/PropertyExecutionPublishingEntity.java
@@ -24,14 +24,14 @@ import org.apache.causeway.applib.annotation.DomainObject;
 
 import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
 import demoapp.dom._infra.values.ValueHolder;
-import demoapp.dom.domain._interactions.ExposePersistedInteractions;
+import demoapp.dom.domain._interactions.ExposePersistedExecutions;
 
 @Named("demo.PropertyExecutionPublishingEntity") // shared permissions with concrete sub class
 @DomainObject
 public abstract class PropertyExecutionPublishingEntity
 implements
     HasAsciiDocDescription,
-        ExposePersistedInteractions,
+        ExposePersistedExecutions,
     ValueHolder<String> {
 
     @Override
diff --git a/examples/demo/domain/src/main/resources/banner.txt b/examples/demo/domain/src/main/resources/banner.txt
index 1c244984e5..e2a0bb7864 100644
--- a/examples/demo/domain/src/main/resources/banner.txt
+++ b/examples/demo/domain/src/main/resources/banner.txt
@@ -1,8 +1,8 @@
              __
-           / _|
+           / _|                  powered by Spring Boot ${spring-boot.version}
    __ _ ___| |_    ___ __ _ _   _ ___  _____      ____ _ _   _
   / _` / __|  _|  / __/ _` | | | / __|/ _ \ \ /\ / / _` | | | |
  | (_| \__ \ |   | (_| (_| | |_| \__ \  __/\ V  V / (_| | |_| |
   \__,_|___/_|    \___\__,_|\__,_|___/\___| \_/\_/ \__,_|\__, |
                                                           __/ |
-  === powered by Spring Boot ${spring-boot.version} ===  |___/
+                                                         |___/