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

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

commit f977d3dcd535c0873b7299327e087a7fbe13d94e
Author: danhaywood <[email protected]>
AuthorDate: Tue Apr 4 18:32:47 2023 +0100

    CAUSEWAY-2485: wip, scaffolds out jpa entities for remaining 
@DomainObjectLayout attributes
---
 .../src/main/java/demoapp/dom/DemoModuleJpa.java   |  8 ++++
 ...age.java => DomainObjectLayoutDescribedAs.java} | 42 +++++++++--------
 ...ml => DomainObjectLayoutDescribedAs.layout.xml} | 44 ++++++++++++++---
 .../DomainObjectLayoutDescribedAsPage.java         |  7 +--
 .../DomainObjectLayoutDescribedAsPage.layout.xml   |  9 ++++
 .../DomainObjectLayoutDescribedAsPage_objects.java | 30 ++++++++++++
 .../DomainObjectLayoutDescribedAsRepository.java   | 26 ++++++++++
 .../DomainObjectLayoutDescribedAsSeeding.java      | 38 +++++++++++++++
 ...mainObjectLayoutDescribedAsJpa-description.adoc | 10 ++++
 .../DomainObjectLayoutDescribedAsJpa.java}         | 53 +++++++++++++--------
 .../DomainObjectLayoutDescribedAsJpaEntities.java  | 55 ++++++++++++++++++++++
 .../DomainObjectLayoutNamed.java}                  | 44 +++++++++--------
 .../DomainObjectLayoutNamed.layout.xml}            | 44 ++++++++++++++---
 .../named/DomainObjectLayoutNamedPage_objects.java | 30 ++++++++++++
 .../named/DomainObjectLayoutNamedRepository.java   | 26 ++++++++++
 .../named/DomainObjectLayoutNamedSeeding.java      | 38 +++++++++++++++
 .../DomainObjectLayoutNamedJpa-description.adoc    | 10 ++++
 .../jpa/DomainObjectLayoutNamedJpa.java}           | 53 +++++++++++++--------
 .../jpa/DomainObjectLayoutNamedJpaEntities.java    | 55 ++++++++++++++++++++++
 .../DomainObjectLayoutPaged.java}                  | 44 +++++++++--------
 .../DomainObjectLayoutPaged.layout.xml}            | 44 ++++++++++++++---
 .../paged/DomainObjectLayoutPagedPage_objects.java | 30 ++++++++++++
 .../paged/DomainObjectLayoutPagedRepository.java   | 26 ++++++++++
 .../paged/DomainObjectLayoutPagedSeeding.java      | 38 +++++++++++++++
 .../DomainObjectLayoutPagedJpa-description.adoc    | 10 ++++
 .../jpa/DomainObjectLayoutPagedJpa.java}           | 53 +++++++++++++--------
 .../jpa/DomainObjectLayoutPagedJpaEntities.java    | 55 ++++++++++++++++++++++
 .../DomainObjectLayoutTableDecorator.java}         | 44 +++++++++--------
 .../DomainObjectLayoutTableDecorator.layout.xml}   | 44 ++++++++++++++---
 ...mainObjectLayoutTableDecoratorPage_objects.java | 29 ++++++++++++
 ...DomainObjectLayoutTableDecoratorRepository.java | 26 ++++++++++
 .../DomainObjectLayoutTableDecoratorSeeding.java   | 38 +++++++++++++++
 ...nObjectLayoutTableDecoratorJpa-description.adoc | 10 ++++
 .../jpa/DomainObjectLayoutTableDecoratorJpa.java}  | 53 +++++++++++++--------
 ...omainObjectLayoutTableDecoratorJpaEntities.java | 55 ++++++++++++++++++++++
 .../DomainObjectLayoutXxxUiEvent.java}             | 44 +++++++++--------
 .../DomainObjectLayoutXxxUiEvent.layout.xml}       | 44 ++++++++++++++---
 .../DomainObjectLayoutXxxUiEventPage_objects.java  | 30 ++++++++++++
 .../DomainObjectLayoutXxxUiEventRepository.java    | 26 ++++++++++
 .../DomainObjectLayoutXxxUiEventSeeding.java       | 38 +++++++++++++++
 ...omainObjectLayoutXxxUiEventJpa-description.adoc | 10 ++++
 .../jpa/DomainObjectLayoutXxxUiEventJpa.java}      | 53 +++++++++++++--------
 .../DomainObjectLayoutXxxUiEventJpaEntities.java   | 55 ++++++++++++++++++++++
 43 files changed, 1282 insertions(+), 239 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 8ba66edc63..f5661c24eb 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/DemoModuleJpa.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/DemoModuleJpa.java
@@ -35,6 +35,10 @@ import 
demoapp.dom.domain.objects.DomainObjectLayout.bookmarking.jpa.DomainObjec
 import 
demoapp.dom.domain.objects.DomainObjectLayout.bookmarking.jpa.DomainObjectLayoutBookmarkingJpa;
 import 
demoapp.dom.domain.objects.DomainObjectLayout.cssClass.jpa.DomainObjectLayoutCssClassJpa;
 import 
demoapp.dom.domain.objects.DomainObjectLayout.cssClassFa.jpa.DomainObjectLayoutCssClassFaJpa;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.describedAs.jpa.DomainObjectLayoutDescribedAsJpa;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.named.jpa.DomainObjectLayoutNamedJpa;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.paged.jpa.DomainObjectLayoutPagedJpa;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.tabledec.jpa.DomainObjectLayoutTableDecoratorJpa;
 import demoapp.dom.domain.objects.other.embedded.jpa.NumberConstantJpa;
 import 
demoapp.dom.domain.properties.Property.commandPublishing.jpa.PropertyCommandPublishingJpa;
 import 
demoapp.dom.domain.properties.Property.executionPublishing.jpa.PropertyExecutionPublishingJpa;
@@ -114,6 +118,10 @@ import org.springframework.context.annotation.Profile;
         DomainObjectLayoutBookmarkingChildJpa.class,
         DomainObjectLayoutCssClassJpa.class,
         DomainObjectLayoutCssClassFaJpa.class,
+        DomainObjectLayoutDescribedAsJpa.class,
+        DomainObjectLayoutNamedJpa.class,
+        DomainObjectLayoutPagedJpa.class,
+        DomainObjectLayoutTableDecoratorJpa.class,
 
         CausewayBlobJpa.class,
         CausewayClobJpa.class,
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAs.java
similarity index 57%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAs.java
index 1cfd303efb..ead9c4edcb 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAs.java
@@ -19,32 +19,36 @@
 package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
 
 import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import demoapp.dom._infra.values.ValueHolder;
 
-import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.causeway.applib.annotation.DomainObject;
 import org.apache.causeway.applib.annotation.DomainObjectLayout;
-import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
 
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
 @DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
+        cssClassFa = "fa-user"             // <.>
+)
+public abstract class DomainObjectLayoutDescribedAs
+//end::class[]
+        implements
+        HasAsciiDocDescription,
+        ValueHolder<String>
+//tag::class[]
+{
+    // ...
+//end::class[]
 
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+    public String title() {
+        return value();
     }
 
+    @Override
+    public String value() {
+        return getName();
+    }
+
+    public abstract String getName();
+    public abstract void setName(String value);
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAs.layout.xml
similarity index 63%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAs.layout.xml
index b4f853de75..1135efb565 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAs.layout.xml
@@ -26,22 +26,52 @@
 
        <bs3:row>
                <bs3:col span="6">
-                       <cpt:fieldSet name="Other" id="other" 
unreferencedProperties="true"/>
+                       <bs3:tabGroup>
+                               <bs3:tab name="General">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="General" id="general" >
+                                                               <cpt:property 
id="name"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Metadata">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Metadata" id="metadata" >
+                                                               <cpt:property 
id="id"/>
+                                                               <cpt:property 
id="logicalTypeName"/>
+                                                               <cpt:property 
id="version"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Other">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Other" id="other" unreferencedProperties="true"/>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                       </bs3:tabGroup>
                </bs3:col>
                <bs3:col span="6">
                        <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="downloadLayout"  
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="downloadMetamodelXml"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="downloadJdoMetamodel"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentCommands"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentExecutions"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentAuditTrailEntries"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="impersonateWithRoles"  
position="PANEL_DROPDOWN"/>
                                <cpt:action id="openRestApi" 
position="PANEL_DROPDOWN" />
                                <cpt:property id="description"/>
                        </cpt:fieldSet>
-               </bs3:col>
-       </bs3:row>
+               </bs3:col>      </bs3:row>
        <bs3:row>
                <bs3:col span="12" unreferencedCollections="true"/>
        </bs3:row>
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
index 1cfd303efb..ee7afba624 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
@@ -35,11 +35,8 @@ import org.apache.causeway.applib.annotation.ObjectSupport;
 @XmlRootElement(name = "root")
 @XmlType
 @XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
-@DomainObjectLayout(
-        describedAs = "This could be a good object description.")
+@Named("demo.DomainObjectLayoutDescribedAsPage")
+@DomainObject(nature=Nature.VIEW_MODEL)
 public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
 
     @ObjectSupport public String title() {
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
index b4f853de75..db8737c04a 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
@@ -26,7 +26,16 @@
 
        <bs3:row>
                <bs3:col span="6">
+                       <bs3:row>
+                               <bs3:col span="12">
                        <cpt:fieldSet name="Other" id="other" 
unreferencedProperties="true"/>
+               </bs3:col>
+                       </bs3:row>
+                       <bs3:row>
+                               <bs3:col span="12">
+                                       <cpt:collection id="objects"/>
+                               </bs3:col>
+                       </bs3:row>
                </bs3:col>
                <bs3:col span="6">
                        <cpt:fieldSet name="Description" id="description" >
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage_objects.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage_objects.java
new file mode 100644
index 0000000000..64024e954d
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage_objects.java
@@ -0,0 +1,30 @@
+package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.cssClassFa.DomainObjectLayoutCssClassFaPage;
+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()
+@RequiredArgsConstructor
+public class DomainObjectLayoutDescribedAsPage_objects {
+
+    @SuppressWarnings("unused")
+    private final DomainObjectLayoutDescribedAsPage page;
+
+    @MemberSupport
+    public List<? extends DomainObjectLayoutDescribedAs> coll() {
+        return objectRepository.all();
+    }
+
+    @Inject ValueHolderRepository<String, ? extends 
DomainObjectLayoutDescribedAs> objectRepository;
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsRepository.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsRepository.java
new file mode 100644
index 0000000000..1fb4c3b904
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsRepository.java
@@ -0,0 +1,26 @@
+/*
+ *  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.DomainObjectLayout.describedAs;
+
+import java.util.List;
+
+public interface DomainObjectLayoutDescribedAsRepository {
+
+    List<? extends DomainObjectLayoutDescribedAs> allInstances();
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsSeeding.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsSeeding.java
new file mode 100644
index 0000000000..e4ecb50613
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsSeeding.java
@@ -0,0 +1,38 @@
+/*
+ *  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.DomainObjectLayout.describedAs;
+
+import demoapp.dom._infra.seed.SeedServiceAbstract;
+import demoapp.dom._infra.values.ValueHolderRepository;
+
+import javax.inject.Inject;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class DomainObjectLayoutDescribedAsSeeding
+extends SeedServiceAbstract {
+
+    @Inject
+    public DomainObjectLayoutDescribedAsSeeding(
+            ValueHolderRepository<String, ? extends 
DomainObjectLayoutDescribedAs> entities) {
+        super(entities);
+    }
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpa-description.adoc
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpa-description.adoc
new file mode 100644
index 0000000000..72d14ecfb6
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpa-description.adoc
@@ -0,0 +1,10 @@
+: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 [...]
+
+This object is annotated with a CSS font-awesome class of "fa-user":
+
+[source,java,indent=0]
+----
+include::../DomainObjectLayoutDescribedAs.java[tags=class]
+----
+<.> specifies "bus" CSS font-awesome style
+
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpa.java
similarity index 54%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpa.java
index 1cfd303efb..8b42132c33 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpa.java
@@ -16,35 +16,48 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.describedAs.jpa;
 
-import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.describedAs.DomainObjectLayoutDescribedAs;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
 
 import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import javax.persistence.*;
 
 import org.apache.causeway.applib.annotation.DomainObject;
-import org.apache.causeway.applib.annotation.DomainObjectLayout;
 import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
+import 
org.apache.causeway.persistence.jpa.applib.integration.CausewayEntityListener;
+import org.springframework.context.annotation.Profile;
 
+@Profile("demo-jpa")
+@Entity
+@Table(
+    schema = "demo",
+    name = "DomainObjectLayoutCssClassFaJpa"
+)
+@EntityListeners(CausewayEntityListener.class)
+@Named("demo.DomainObjectLayoutCssClassFaJpa")
+@NoArgsConstructor
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
-@DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
-
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+// ...
+@DomainObject(nature = Nature.ENTITY)
+public class DomainObjectLayoutDescribedAsJpa extends 
DomainObjectLayoutDescribedAs {
+    // ...
+//end::class[]
+
+    public DomainObjectLayoutDescribedAsJpa(String value) {
+        setName(value);
     }
 
+    @Id
+    @GeneratedValue
+    private Long id;
+
+    @Getter @Setter
+    private String name;
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpaEntities.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpaEntities.java
new file mode 100644
index 0000000000..3acdeb82cd
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/jpa/DomainObjectLayoutDescribedAsJpaEntities.java
@@ -0,0 +1,55 @@
+/*
+ *  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.DomainObjectLayout.describedAs.jpa;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.describedAs.DomainObjectLayoutDescribedAs;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.describedAs.DomainObjectLayoutDescribedAsRepository;
+
+import java.util.List;
+
+import org.springframework.context.annotation.Profile;
+import org.springframework.stereotype.Service;
+
+@Profile("demo-jpa")
+@Service
+public class DomainObjectLayoutDescribedAsJpaEntities
+extends ValueHolderRepository<String, DomainObjectLayoutDescribedAsJpa> 
implements DomainObjectLayoutDescribedAsRepository {
+
+    protected DomainObjectLayoutDescribedAsJpaEntities() {
+        super(DomainObjectLayoutDescribedAsJpa.class);
+    }
+
+    @Override
+    protected DomainObjectLayoutDescribedAsJpa newDetachedEntity(String value) 
{
+        return new DomainObjectLayoutDescribedAsJpa(value);
+    }
+
+    @Override
+    public List<? extends DomainObjectLayoutDescribedAs> allInstances() {
+        return all();
+    }
+
+    public List<? extends DomainObjectLayoutDescribedAs> allMatches(final 
String s) {
+        return all();
+    }
+    public List<? extends DomainObjectLayoutDescribedAs> allMatches() {
+        return all();
+    }
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamed.java
similarity index 54%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamed.java
index 1cfd303efb..eb798008dd 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamed.java
@@ -16,35 +16,39 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.named;
 
 import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import demoapp.dom._infra.values.ValueHolder;
 
-import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.causeway.applib.annotation.DomainObject;
 import org.apache.causeway.applib.annotation.DomainObjectLayout;
-import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
 
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
 @DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
+        cssClassFa = "fa-user"             // <.>
+)
+public abstract class DomainObjectLayoutNamed
+//end::class[]
+        implements
+        HasAsciiDocDescription,
+        ValueHolder<String>
+//tag::class[]
+{
+    // ...
+//end::class[]
 
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+    public String title() {
+        return value();
     }
 
+    @Override
+    public String value() {
+        return getName();
+    }
+
+    public abstract String getName();
+    public abstract void setName(String value);
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamed.layout.xml
similarity index 63%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamed.layout.xml
index b4f853de75..1135efb565 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamed.layout.xml
@@ -26,22 +26,52 @@
 
        <bs3:row>
                <bs3:col span="6">
-                       <cpt:fieldSet name="Other" id="other" 
unreferencedProperties="true"/>
+                       <bs3:tabGroup>
+                               <bs3:tab name="General">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="General" id="general" >
+                                                               <cpt:property 
id="name"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Metadata">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Metadata" id="metadata" >
+                                                               <cpt:property 
id="id"/>
+                                                               <cpt:property 
id="logicalTypeName"/>
+                                                               <cpt:property 
id="version"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Other">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Other" id="other" unreferencedProperties="true"/>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                       </bs3:tabGroup>
                </bs3:col>
                <bs3:col span="6">
                        <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="downloadLayout"  
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="downloadMetamodelXml"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="downloadJdoMetamodel"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentCommands"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentExecutions"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentAuditTrailEntries"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="impersonateWithRoles"  
position="PANEL_DROPDOWN"/>
                                <cpt:action id="openRestApi" 
position="PANEL_DROPDOWN" />
                                <cpt:property id="description"/>
                        </cpt:fieldSet>
-               </bs3:col>
-       </bs3:row>
+               </bs3:col>      </bs3:row>
        <bs3:row>
                <bs3:col span="12" unreferencedCollections="true"/>
        </bs3:row>
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedPage_objects.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedPage_objects.java
new file mode 100644
index 0000000000..a574395dd7
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedPage_objects.java
@@ -0,0 +1,30 @@
+package demoapp.dom.domain.objects.DomainObjectLayout.named;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.describedAs.DomainObjectLayoutDescribedAsPage;
+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()
+@RequiredArgsConstructor
+public class DomainObjectLayoutNamedPage_objects {
+
+    @SuppressWarnings("unused")
+    private final DomainObjectLayoutNamedPage page;
+
+    @MemberSupport
+    public List<? extends DomainObjectLayoutNamed> coll() {
+        return objectRepository.all();
+    }
+
+    @Inject ValueHolderRepository<String, ? extends DomainObjectLayoutNamed> 
objectRepository;
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedRepository.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedRepository.java
new file mode 100644
index 0000000000..0bf8edbb0d
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedRepository.java
@@ -0,0 +1,26 @@
+/*
+ *  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.DomainObjectLayout.named;
+
+import java.util.List;
+
+public interface DomainObjectLayoutNamedRepository {
+
+    List<? extends DomainObjectLayoutNamed> allInstances();
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedSeeding.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedSeeding.java
new file mode 100644
index 0000000000..f3c66ef59d
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedSeeding.java
@@ -0,0 +1,38 @@
+/*
+ *  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.DomainObjectLayout.named;
+
+import demoapp.dom._infra.seed.SeedServiceAbstract;
+import demoapp.dom._infra.values.ValueHolderRepository;
+
+import javax.inject.Inject;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class DomainObjectLayoutNamedSeeding
+extends SeedServiceAbstract {
+
+    @Inject
+    public DomainObjectLayoutNamedSeeding(
+            ValueHolderRepository<String, ? extends DomainObjectLayoutNamed> 
entities) {
+        super(entities);
+    }
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpa-description.adoc
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpa-description.adoc
new file mode 100644
index 0000000000..773c651f46
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpa-description.adoc
@@ -0,0 +1,10 @@
+: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 [...]
+
+This object is annotated with a CSS font-awesome class of "fa-user":
+
+[source,java,indent=0]
+----
+include::../DomainObjectLayoutNamed.java[tags=class]
+----
+<.> specifies "bus" CSS font-awesome style
+
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpa.java
similarity index 51%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpa.java
index 1cfd303efb..3ef932af36 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpa.java
@@ -16,35 +16,48 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.named.jpa;
 
-import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.named.DomainObjectLayoutNamed;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
 
 import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import javax.persistence.*;
 
 import org.apache.causeway.applib.annotation.DomainObject;
-import org.apache.causeway.applib.annotation.DomainObjectLayout;
 import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
+import 
org.apache.causeway.persistence.jpa.applib.integration.CausewayEntityListener;
+import org.springframework.context.annotation.Profile;
 
+@Profile("demo-jpa")
+@Entity
+@Table(
+    schema = "demo",
+    name = "DomainObjectLayoutCssClassFaJpa"
+)
+@EntityListeners(CausewayEntityListener.class)
+@Named("demo.DomainObjectLayoutCssClassFaJpa")
+@NoArgsConstructor
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
-@DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
-
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+// ...
+@DomainObject(nature = Nature.ENTITY)
+public class DomainObjectLayoutNamedJpa extends DomainObjectLayoutNamed {
+    // ...
+//end::class[]
+
+    public DomainObjectLayoutNamedJpa(String value) {
+        setName(value);
     }
 
+    @Id
+    @GeneratedValue
+    private Long id;
+
+    @Getter @Setter
+    private String name;
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpaEntities.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpaEntities.java
new file mode 100644
index 0000000000..640e6d3f68
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/jpa/DomainObjectLayoutNamedJpaEntities.java
@@ -0,0 +1,55 @@
+/*
+ *  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.DomainObjectLayout.named.jpa;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.named.DomainObjectLayoutNamed;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.named.DomainObjectLayoutNamedRepository;
+
+import java.util.List;
+
+import org.springframework.context.annotation.Profile;
+import org.springframework.stereotype.Service;
+
+@Profile("demo-jpa")
+@Service
+public class DomainObjectLayoutNamedJpaEntities
+extends ValueHolderRepository<String, DomainObjectLayoutNamedJpa> implements 
DomainObjectLayoutNamedRepository {
+
+    protected DomainObjectLayoutNamedJpaEntities() {
+        super(DomainObjectLayoutNamedJpa.class);
+    }
+
+    @Override
+    protected DomainObjectLayoutNamedJpa newDetachedEntity(String value) {
+        return new DomainObjectLayoutNamedJpa(value);
+    }
+
+    @Override
+    public List<? extends DomainObjectLayoutNamed> allInstances() {
+        return all();
+    }
+
+    public List<? extends DomainObjectLayoutNamed> allMatches(final String s) {
+        return all();
+    }
+    public List<? extends DomainObjectLayoutNamed> allMatches() {
+        return all();
+    }
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPaged.java
similarity index 54%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPaged.java
index 1cfd303efb..12cc63f60a 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPaged.java
@@ -16,35 +16,39 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.paged;
 
 import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import demoapp.dom._infra.values.ValueHolder;
 
-import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.causeway.applib.annotation.DomainObject;
 import org.apache.causeway.applib.annotation.DomainObjectLayout;
-import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
 
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
 @DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
+        cssClassFa = "fa-user"             // <.>
+)
+public abstract class DomainObjectLayoutPaged
+//end::class[]
+        implements
+        HasAsciiDocDescription,
+        ValueHolder<String>
+//tag::class[]
+{
+    // ...
+//end::class[]
 
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+    public String title() {
+        return value();
     }
 
+    @Override
+    public String value() {
+        return getName();
+    }
+
+    public abstract String getName();
+    public abstract void setName(String value);
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPaged.layout.xml
similarity index 63%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPaged.layout.xml
index b4f853de75..1135efb565 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPaged.layout.xml
@@ -26,22 +26,52 @@
 
        <bs3:row>
                <bs3:col span="6">
-                       <cpt:fieldSet name="Other" id="other" 
unreferencedProperties="true"/>
+                       <bs3:tabGroup>
+                               <bs3:tab name="General">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="General" id="general" >
+                                                               <cpt:property 
id="name"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Metadata">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Metadata" id="metadata" >
+                                                               <cpt:property 
id="id"/>
+                                                               <cpt:property 
id="logicalTypeName"/>
+                                                               <cpt:property 
id="version"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Other">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Other" id="other" unreferencedProperties="true"/>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                       </bs3:tabGroup>
                </bs3:col>
                <bs3:col span="6">
                        <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="downloadLayout"  
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="downloadMetamodelXml"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="downloadJdoMetamodel"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentCommands"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentExecutions"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentAuditTrailEntries"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="impersonateWithRoles"  
position="PANEL_DROPDOWN"/>
                                <cpt:action id="openRestApi" 
position="PANEL_DROPDOWN" />
                                <cpt:property id="description"/>
                        </cpt:fieldSet>
-               </bs3:col>
-       </bs3:row>
+               </bs3:col>      </bs3:row>
        <bs3:row>
                <bs3:col span="12" unreferencedCollections="true"/>
        </bs3:row>
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedPage_objects.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedPage_objects.java
new file mode 100644
index 0000000000..3c19719a95
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedPage_objects.java
@@ -0,0 +1,30 @@
+package demoapp.dom.domain.objects.DomainObjectLayout.paged;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.describedAs.DomainObjectLayoutDescribedAsPage;
+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()
+@RequiredArgsConstructor
+public class DomainObjectLayoutPagedPage_objects {
+
+    @SuppressWarnings("unused")
+    private final DomainObjectLayoutPagedPage page;
+
+    @MemberSupport
+    public List<? extends DomainObjectLayoutPaged> coll() {
+        return objectRepository.all();
+    }
+
+    @Inject ValueHolderRepository<String, ? extends DomainObjectLayoutPaged> 
objectRepository;
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedRepository.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedRepository.java
new file mode 100644
index 0000000000..555f280d41
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedRepository.java
@@ -0,0 +1,26 @@
+/*
+ *  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.DomainObjectLayout.paged;
+
+import java.util.List;
+
+public interface DomainObjectLayoutPagedRepository {
+
+    List<? extends DomainObjectLayoutPaged> allInstances();
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedSeeding.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedSeeding.java
new file mode 100644
index 0000000000..db39bcb2ad
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedSeeding.java
@@ -0,0 +1,38 @@
+/*
+ *  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.DomainObjectLayout.paged;
+
+import demoapp.dom._infra.seed.SeedServiceAbstract;
+import demoapp.dom._infra.values.ValueHolderRepository;
+
+import javax.inject.Inject;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class DomainObjectLayoutPagedSeeding
+extends SeedServiceAbstract {
+
+    @Inject
+    public DomainObjectLayoutPagedSeeding(
+            ValueHolderRepository<String, ? extends DomainObjectLayoutPaged> 
entities) {
+        super(entities);
+    }
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpa-description.adoc
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpa-description.adoc
new file mode 100644
index 0000000000..fd96d19984
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpa-description.adoc
@@ -0,0 +1,10 @@
+: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 [...]
+
+This object is annotated with a CSS font-awesome class of "fa-user":
+
+[source,java,indent=0]
+----
+include::../DomainObjectLayoutCssClassFa.java[tags=class]
+----
+<.> specifies "bus" CSS font-awesome style
+
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpa.java
similarity index 51%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpa.java
index 1cfd303efb..bb05e5514c 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpa.java
@@ -16,35 +16,48 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.paged.jpa;
 
-import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.paged.DomainObjectLayoutPaged;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
 
 import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import javax.persistence.*;
 
 import org.apache.causeway.applib.annotation.DomainObject;
-import org.apache.causeway.applib.annotation.DomainObjectLayout;
 import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
+import 
org.apache.causeway.persistence.jpa.applib.integration.CausewayEntityListener;
+import org.springframework.context.annotation.Profile;
 
+@Profile("demo-jpa")
+@Entity
+@Table(
+    schema = "demo",
+    name = "DomainObjectLayoutCssClassFaJpa"
+)
+@EntityListeners(CausewayEntityListener.class)
+@Named("demo.DomainObjectLayoutCssClassFaJpa")
+@NoArgsConstructor
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
-@DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
-
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+// ...
+@DomainObject(nature = Nature.ENTITY)
+public class DomainObjectLayoutPagedJpa extends DomainObjectLayoutPaged {
+    // ...
+//end::class[]
+
+    public DomainObjectLayoutPagedJpa(String value) {
+        setName(value);
     }
 
+    @Id
+    @GeneratedValue
+    private Long id;
+
+    @Getter @Setter
+    private String name;
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpaEntities.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpaEntities.java
new file mode 100644
index 0000000000..7e5b53c946
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/jpa/DomainObjectLayoutPagedJpaEntities.java
@@ -0,0 +1,55 @@
+/*
+ *  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.DomainObjectLayout.paged.jpa;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.paged.DomainObjectLayoutPaged;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.paged.DomainObjectLayoutPagedRepository;
+
+import java.util.List;
+
+import org.springframework.context.annotation.Profile;
+import org.springframework.stereotype.Service;
+
+@Profile("demo-jpa")
+@Service
+public class DomainObjectLayoutPagedJpaEntities
+extends ValueHolderRepository<String, DomainObjectLayoutPagedJpa> implements 
DomainObjectLayoutPagedRepository {
+
+    protected DomainObjectLayoutPagedJpaEntities() {
+        super(DomainObjectLayoutPagedJpa.class);
+    }
+
+    @Override
+    protected DomainObjectLayoutPagedJpa newDetachedEntity(String value) {
+        return new DomainObjectLayoutPagedJpa(value);
+    }
+
+    @Override
+    public List<? extends DomainObjectLayoutPaged> allInstances() {
+        return all();
+    }
+
+    public List<? extends DomainObjectLayoutPaged> allMatches(final String s) {
+        return all();
+    }
+    public List<? extends DomainObjectLayoutPaged> allMatches() {
+        return all();
+    }
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecorator.java
similarity index 54%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecorator.java
index 1cfd303efb..a16b05894f 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecorator.java
@@ -16,35 +16,39 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.tabledec;
 
 import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import demoapp.dom._infra.values.ValueHolder;
 
-import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.causeway.applib.annotation.DomainObject;
 import org.apache.causeway.applib.annotation.DomainObjectLayout;
-import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
 
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
 @DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
+        cssClassFa = "fa-user"             // <.>
+)
+public abstract class DomainObjectLayoutTableDecorator
+//end::class[]
+        implements
+        HasAsciiDocDescription,
+        ValueHolder<String>
+//tag::class[]
+{
+    // ...
+//end::class[]
 
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+    public String title() {
+        return value();
     }
 
+    @Override
+    public String value() {
+        return getName();
+    }
+
+    public abstract String getName();
+    public abstract void setName(String value);
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecorator.layout.xml
similarity index 63%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecorator.layout.xml
index b4f853de75..1135efb565 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecorator.layout.xml
@@ -26,22 +26,52 @@
 
        <bs3:row>
                <bs3:col span="6">
-                       <cpt:fieldSet name="Other" id="other" 
unreferencedProperties="true"/>
+                       <bs3:tabGroup>
+                               <bs3:tab name="General">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="General" id="general" >
+                                                               <cpt:property 
id="name"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Metadata">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Metadata" id="metadata" >
+                                                               <cpt:property 
id="id"/>
+                                                               <cpt:property 
id="logicalTypeName"/>
+                                                               <cpt:property 
id="version"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Other">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Other" id="other" unreferencedProperties="true"/>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                       </bs3:tabGroup>
                </bs3:col>
                <bs3:col span="6">
                        <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="downloadLayout"  
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="downloadMetamodelXml"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="downloadJdoMetamodel"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentCommands"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentExecutions"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentAuditTrailEntries"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="impersonateWithRoles"  
position="PANEL_DROPDOWN"/>
                                <cpt:action id="openRestApi" 
position="PANEL_DROPDOWN" />
                                <cpt:property id="description"/>
                        </cpt:fieldSet>
-               </bs3:col>
-       </bs3:row>
+               </bs3:col>      </bs3:row>
        <bs3:row>
                <bs3:col span="12" unreferencedCollections="true"/>
        </bs3:row>
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorPage_objects.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorPage_objects.java
new file mode 100644
index 0000000000..da6a3eb97e
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorPage_objects.java
@@ -0,0 +1,29 @@
+package demoapp.dom.domain.objects.DomainObjectLayout.tabledec;
+
+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()
+@RequiredArgsConstructor
+public class DomainObjectLayoutTableDecoratorPage_objects {
+
+    @SuppressWarnings("unused")
+    private final DomainObjectLayoutTableDecoratorPage page;
+
+    @MemberSupport
+    public List<? extends DomainObjectLayoutTableDecorator> coll() {
+        return objectRepository.all();
+    }
+
+    @Inject ValueHolderRepository<String, ? extends 
DomainObjectLayoutTableDecorator> objectRepository;
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorRepository.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorRepository.java
new file mode 100644
index 0000000000..c95f81ee7b
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorRepository.java
@@ -0,0 +1,26 @@
+/*
+ *  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.DomainObjectLayout.tabledec;
+
+import java.util.List;
+
+public interface DomainObjectLayoutTableDecoratorRepository {
+
+    List<? extends DomainObjectLayoutTableDecorator> allInstances();
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorSeeding.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorSeeding.java
new file mode 100644
index 0000000000..ce8eba5b8a
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/DomainObjectLayoutTableDecoratorSeeding.java
@@ -0,0 +1,38 @@
+/*
+ *  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.DomainObjectLayout.tabledec;
+
+import demoapp.dom._infra.seed.SeedServiceAbstract;
+import demoapp.dom._infra.values.ValueHolderRepository;
+
+import javax.inject.Inject;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class DomainObjectLayoutTableDecoratorSeeding
+extends SeedServiceAbstract {
+
+    @Inject
+    public DomainObjectLayoutTableDecoratorSeeding(
+            ValueHolderRepository<String, ? extends 
DomainObjectLayoutTableDecorator> entities) {
+        super(entities);
+    }
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpa-description.adoc
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpa-description.adoc
new file mode 100644
index 0000000000..14d6b6e7c1
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpa-description.adoc
@@ -0,0 +1,10 @@
+: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 [...]
+
+This object is annotated ...
+
+[source,java,indent=0]
+----
+include::../DomainObjectLayoutTableDecorator.java[tags=class]
+----
+<.> ...
+
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpa.java
similarity index 50%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpa.java
index 1cfd303efb..01c3b94e50 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpa.java
@@ -16,35 +16,48 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.tabledec.jpa;
 
-import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.tabledec.DomainObjectLayoutTableDecorator;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
 
 import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import javax.persistence.*;
 
 import org.apache.causeway.applib.annotation.DomainObject;
-import org.apache.causeway.applib.annotation.DomainObjectLayout;
 import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
+import 
org.apache.causeway.persistence.jpa.applib.integration.CausewayEntityListener;
+import org.springframework.context.annotation.Profile;
 
+@Profile("demo-jpa")
+@Entity
+@Table(
+    schema = "demo",
+    name = "DomainObjectLayoutCssClassFaJpa"
+)
+@EntityListeners(CausewayEntityListener.class)
+@Named("demo.DomainObjectLayoutCssClassFaJpa")
+@NoArgsConstructor
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
-@DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
-
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+// ...
+@DomainObject(nature = Nature.ENTITY)
+public class DomainObjectLayoutTableDecoratorJpa extends 
DomainObjectLayoutTableDecorator {
+    // ...
+//end::class[]
+
+    public DomainObjectLayoutTableDecoratorJpa(String value) {
+        setName(value);
     }
 
+    @Id
+    @GeneratedValue
+    private Long id;
+
+    @Getter @Setter
+    private String name;
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpaEntities.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpaEntities.java
new file mode 100644
index 0000000000..a82d782b2c
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/tabledec/jpa/DomainObjectLayoutTableDecoratorJpaEntities.java
@@ -0,0 +1,55 @@
+/*
+ *  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.DomainObjectLayout.tabledec.jpa;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.tabledec.DomainObjectLayoutTableDecorator;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.tabledec.DomainObjectLayoutTableDecoratorRepository;
+
+import java.util.List;
+
+import org.springframework.context.annotation.Profile;
+import org.springframework.stereotype.Service;
+
+@Profile("demo-jpa")
+@Service
+public class DomainObjectLayoutTableDecoratorJpaEntities
+extends ValueHolderRepository<String, DomainObjectLayoutTableDecoratorJpa> 
implements DomainObjectLayoutTableDecoratorRepository {
+
+    protected DomainObjectLayoutTableDecoratorJpaEntities() {
+        super(DomainObjectLayoutTableDecoratorJpa.class);
+    }
+
+    @Override
+    protected DomainObjectLayoutTableDecoratorJpa newDetachedEntity(String 
value) {
+        return new DomainObjectLayoutTableDecoratorJpa(value);
+    }
+
+    @Override
+    public List<? extends DomainObjectLayoutTableDecorator> allInstances() {
+        return all();
+    }
+
+    public List<? extends DomainObjectLayoutTableDecorator> allMatches(final 
String s) {
+        return all();
+    }
+    public List<? extends DomainObjectLayoutTableDecorator> allMatches() {
+        return all();
+    }
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEvent.java
similarity index 54%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEvent.java
index 1cfd303efb..c3edbeee87 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEvent.java
@@ -16,35 +16,39 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.xxxUiEvent;
 
 import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import demoapp.dom._infra.values.ValueHolder;
 
-import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.causeway.applib.annotation.DomainObject;
 import org.apache.causeway.applib.annotation.DomainObjectLayout;
-import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
 
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
 @DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
+        cssClassFa = "fa-user"             // <.>
+)
+public abstract class DomainObjectLayoutXxxUiEvent
+//end::class[]
+        implements
+        HasAsciiDocDescription,
+        ValueHolder<String>
+//tag::class[]
+{
+    // ...
+//end::class[]
 
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+    public String title() {
+        return value();
     }
 
+    @Override
+    public String value() {
+        return getName();
+    }
+
+    public abstract String getName();
+    public abstract void setName(String value);
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEvent.layout.xml
similarity index 63%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEvent.layout.xml
index b4f853de75..1135efb565 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.layout.xml
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEvent.layout.xml
@@ -26,22 +26,52 @@
 
        <bs3:row>
                <bs3:col span="6">
-                       <cpt:fieldSet name="Other" id="other" 
unreferencedProperties="true"/>
+                       <bs3:tabGroup>
+                               <bs3:tab name="General">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="General" id="general" >
+                                                               <cpt:property 
id="name"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Metadata">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Metadata" id="metadata" >
+                                                               <cpt:property 
id="id"/>
+                                                               <cpt:property 
id="logicalTypeName"/>
+                                                               <cpt:property 
id="version"/>
+                                                       </cpt:fieldSet>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                               <bs3:tab name="Other">
+                                       <bs3:row>
+                                               <bs3:col span="12">
+                                                       <cpt:fieldSet 
name="Other" id="other" unreferencedProperties="true"/>
+                                               </bs3:col>
+                                       </bs3:row>
+                               </bs3:tab>
+                       </bs3:tabGroup>
                </bs3:col>
                <bs3:col span="6">
                        <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="downloadLayout"  
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="downloadMetamodelXml"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="downloadJdoMetamodel"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentCommands"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentExecutions"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="recentAuditTrailEntries"  
position="PANEL_DROPDOWN"/>
+                               <cpt:action id="impersonateWithRoles"  
position="PANEL_DROPDOWN"/>
                                <cpt:action id="openRestApi" 
position="PANEL_DROPDOWN" />
                                <cpt:property id="description"/>
                        </cpt:fieldSet>
-               </bs3:col>
-       </bs3:row>
+               </bs3:col>      </bs3:row>
        <bs3:row>
                <bs3:col span="12" unreferencedCollections="true"/>
        </bs3:row>
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventPage_objects.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventPage_objects.java
new file mode 100644
index 0000000000..16c02fe7b3
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventPage_objects.java
@@ -0,0 +1,30 @@
+package demoapp.dom.domain.objects.DomainObjectLayout.xxxUiEvent;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.tabledec.DomainObjectLayoutTableDecoratorPage;
+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()
+@RequiredArgsConstructor
+public class DomainObjectLayoutXxxUiEventPage_objects {
+
+    @SuppressWarnings("unused")
+    private final DomainObjectLayoutXxxUiEventPage page;
+
+    @MemberSupport
+    public List<? extends DomainObjectLayoutXxxUiEvent> coll() {
+        return objectRepository.all();
+    }
+
+    @Inject ValueHolderRepository<String, ? extends 
DomainObjectLayoutXxxUiEvent> objectRepository;
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventRepository.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventRepository.java
new file mode 100644
index 0000000000..6a78bb50bf
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventRepository.java
@@ -0,0 +1,26 @@
+/*
+ *  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.DomainObjectLayout.xxxUiEvent;
+
+import java.util.List;
+
+public interface DomainObjectLayoutXxxUiEventRepository {
+
+    List<? extends DomainObjectLayoutXxxUiEvent> allInstances();
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventSeeding.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventSeeding.java
new file mode 100644
index 0000000000..b10fed27b3
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventSeeding.java
@@ -0,0 +1,38 @@
+/*
+ *  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.DomainObjectLayout.xxxUiEvent;
+
+import demoapp.dom._infra.seed.SeedServiceAbstract;
+import demoapp.dom._infra.values.ValueHolderRepository;
+
+import javax.inject.Inject;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class DomainObjectLayoutXxxUiEventSeeding
+extends SeedServiceAbstract {
+
+    @Inject
+    public DomainObjectLayoutXxxUiEventSeeding(
+            ValueHolderRepository<String, ? extends 
DomainObjectLayoutXxxUiEvent> entities) {
+        super(entities);
+    }
+
+}
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpa-description.adoc
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpa-description.adoc
new file mode 100644
index 0000000000..256f5b6fb1
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpa-description.adoc
@@ -0,0 +1,10 @@
+: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 [...]
+
+This object is annotated ...
+
+[source,java,indent=0]
+----
+include::../DomainObjectLayoutXxxUiEvent.java[tags=class]
+----
+<.> ...
+
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpa.java
similarity index 50%
copy from 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
copy to 
examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpa.java
index 1cfd303efb..80a7e69e13 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsPage.java
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpa.java
@@ -16,35 +16,48 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
-package demoapp.dom.domain.objects.DomainObjectLayout.describedAs;
+package demoapp.dom.domain.objects.DomainObjectLayout.xxxUiEvent.jpa;
 
-import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.xxxUiEvent.DomainObjectLayoutXxxUiEvent;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
 
 import javax.inject.Named;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import javax.persistence.*;
 
 import org.apache.causeway.applib.annotation.DomainObject;
-import org.apache.causeway.applib.annotation.DomainObjectLayout;
 import org.apache.causeway.applib.annotation.Nature;
-import org.apache.causeway.applib.annotation.ObjectSupport;
+import 
org.apache.causeway.persistence.jpa.applib.integration.CausewayEntityListener;
+import org.springframework.context.annotation.Profile;
 
+@Profile("demo-jpa")
+@Entity
+@Table(
+    schema = "demo",
+    name = "DomainObjectLayoutCssClassFaJpa"
+)
+@EntityListeners(CausewayEntityListener.class)
+@Named("demo.DomainObjectLayoutCssClassFaJpa")
+@NoArgsConstructor
 //tag::class[]
-@XmlRootElement(name = "root")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@Named("demo.DomainObjectLayoutDescribedAsVm")
-@DomainObject(
-        nature=Nature.VIEW_MODEL)
-@DomainObjectLayout(
-        describedAs = "This could be a good object description.")
-public class DomainObjectLayoutDescribedAsPage implements 
HasAsciiDocDescription {
-
-    @ObjectSupport public String title() {
-        return "DomainObjectLayout#describedAs";
+// ...
+@DomainObject(nature = Nature.ENTITY)
+public class DomainObjectLayoutXxxUiEventJpa extends 
DomainObjectLayoutXxxUiEvent {
+    // ...
+//end::class[]
+
+    public DomainObjectLayoutXxxUiEventJpa(String value) {
+        setName(value);
     }
 
+    @Id
+    @GeneratedValue
+    private Long id;
+
+    @Getter @Setter
+    private String name;
+
+//tag::class[]
 }
 //end::class[]
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpaEntities.java
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpaEntities.java
new file mode 100644
index 0000000000..e3dc0610d2
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/jpa/DomainObjectLayoutXxxUiEventJpaEntities.java
@@ -0,0 +1,55 @@
+/*
+ *  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.DomainObjectLayout.xxxUiEvent.jpa;
+
+import demoapp.dom._infra.values.ValueHolderRepository;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.xxxUiEvent.DomainObjectLayoutXxxUiEvent;
+import 
demoapp.dom.domain.objects.DomainObjectLayout.xxxUiEvent.DomainObjectLayoutXxxUiEventRepository;
+
+import java.util.List;
+
+import org.springframework.context.annotation.Profile;
+import org.springframework.stereotype.Service;
+
+@Profile("demo-jpa")
+@Service
+public class DomainObjectLayoutXxxUiEventJpaEntities
+extends ValueHolderRepository<String, DomainObjectLayoutXxxUiEventJpa> 
implements DomainObjectLayoutXxxUiEventRepository {
+
+    protected DomainObjectLayoutXxxUiEventJpaEntities() {
+        super(DomainObjectLayoutXxxUiEventJpa.class);
+    }
+
+    @Override
+    protected DomainObjectLayoutXxxUiEventJpa newDetachedEntity(String value) {
+        return new DomainObjectLayoutXxxUiEventJpa(value);
+    }
+
+    @Override
+    public List<? extends DomainObjectLayoutXxxUiEvent> allInstances() {
+        return all();
+    }
+
+    public List<? extends DomainObjectLayoutXxxUiEvent> allMatches(final 
String s) {
+        return all();
+    }
+    public List<? extends DomainObjectLayoutXxxUiEvent> allMatches() {
+        return all();
+    }
+}


Reply via email to