You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2025/10/09 22:18:27 UTC

(causeway-app-helloworld) branch release-4.0.0-M1-RC1-jpa created (now cf91d82)

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

danhaywood pushed a change to branch release-4.0.0-M1-RC1-jpa
in repository https://gitbox.apache.org/repos/asf/causeway-app-helloworld.git


      at cf91d82  converts to v4.0.0-SNAPSHOT

This branch includes the following new commits:

     new cf91d82  converts to v4.0.0-SNAPSHOT

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(causeway-app-helloworld) 01/01: converts to v4.0.0-SNAPSHOT

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch release-4.0.0-M1-RC1-jpa
in repository https://gitbox.apache.org/repos/asf/causeway-app-helloworld.git

commit cf91d82aa302291ea5c9d5677e5d7d4b0c791409
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Oct 8 23:45:01 2025 +0100

    converts to v4.0.0-SNAPSHOT
---
 pom.xml                                                     |  8 ++------
 src/main/java/domainapp/modules/hello/HelloWorldModule.java |  2 +-
 src/main/java/domainapp/webapp/AppManifest.java             | 11 ++++++-----
 src/main/resources/application.yml                          |  4 +++-
 4 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0a8bc04..39f06de 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,13 +7,13 @@
     <parent>
         <groupId>org.apache.causeway.app</groupId>
         <artifactId>causeway-app-starter-parent</artifactId>
-        <version>3.5.0-SNAPSHOT</version>
+        <version>4.0.0-SNAPSHOT</version>
         <relativePath/>
     </parent>
 
     <artifactId>helloworld-jpa</artifactId>
     <groupId>org.apache.causeway.starters</groupId>
-    <version>3.5.0-SNAPSHOT</version>
+    <version>4.0.0-SNAPSHOT</version>
 
     <name>HelloWorld (JPA)</name>
 
@@ -81,10 +81,6 @@
 			<groupId>org.apache.causeway.viewer</groupId>
 			<artifactId>causeway-viewer-wicket-viewer</artifactId>
 		</dependency>
-		<dependency>
-			<groupId>org.apache.causeway.viewer</groupId>
-			<artifactId>causeway-viewer-restfulobjects-jaxrsresteasy</artifactId>
-		</dependency>
 
         <dependency>
             <groupId>org.apache.causeway.security</groupId>
diff --git a/src/main/java/domainapp/modules/hello/HelloWorldModule.java b/src/main/java/domainapp/modules/hello/HelloWorldModule.java
index 7a5b3fe..684086f 100644
--- a/src/main/java/domainapp/modules/hello/HelloWorldModule.java
+++ b/src/main/java/domainapp/modules/hello/HelloWorldModule.java
@@ -1,6 +1,6 @@
 package domainapp.modules.hello;
 
-import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.boot.persistence.autoconfigure.EntityScan;
 import org.springframework.context.annotation.ComponentScan;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.context.annotation.Import;
diff --git a/src/main/java/domainapp/webapp/AppManifest.java b/src/main/java/domainapp/webapp/AppManifest.java
index 0a19012..76fef15 100644
--- a/src/main/java/domainapp/webapp/AppManifest.java
+++ b/src/main/java/domainapp/webapp/AppManifest.java
@@ -2,6 +2,8 @@
 
 import java.util.List;
 
+import org.apache.causeway.viewer.restfulobjects.viewer.CausewayModuleViewerRestfulObjectsViewer;
+
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.context.annotation.Import;
@@ -20,7 +22,6 @@
 import org.apache.causeway.security.simple.realm.SimpleRealm.Grant;
 import org.apache.causeway.testing.h2console.ui.CausewayModuleTestingH2ConsoleUi;
 import org.apache.causeway.viewer.graphql.viewer.CausewayModuleViewerGraphqlViewer;
-import org.apache.causeway.viewer.restfulobjects.jaxrsresteasy.CausewayModuleViewerRestfulObjectsJaxrsResteasy;
 import org.apache.causeway.viewer.wicket.applib.CausewayModuleViewerWicketApplibMixins;
 import org.apache.causeway.viewer.wicket.viewer.CausewayModuleViewerWicketViewer;
 
@@ -34,7 +35,7 @@
         CausewayModuleCoreRuntimeServices.class,
         CausewayModuleSecuritySimple.class,
         CausewayModulePersistenceJpaEclipselink.class,
-        CausewayModuleViewerRestfulObjectsJaxrsResteasy.class,
+        CausewayModuleViewerRestfulObjectsViewer.class,
         CausewayModuleViewerGraphqlViewer.class,
         CausewayModuleViewerWicketApplibMixins.class,
         CausewayModuleViewerWicketViewer.class,
@@ -68,12 +69,12 @@ public SimpleRealm simpleAuthRealm(final PasswordEncoder passwordEncoder) {
                     ? Grant.CHANGE
                     : Grant.NONE)
             .addRole("default_role", id->
-                id.getLogicalType().getNamespace().startsWith("causeway.applib")
-                    || id.getLogicalType().getNamespace().startsWith("causeway.security")
+                id.logicalType().namespace().startsWith("causeway.applib")
+                    || id.logicalType().namespace().startsWith("causeway.security")
                     ? Grant.CHANGE
                     : Grant.NONE)
             .addRole("fixtures_role", id->
-                id.getLogicalType().getNamespace().startsWith("causeway.testing.fixtures")
+                id.logicalType().namespace().startsWith("causeway.testing.fixtures")
                     ? Grant.CHANGE
                     : Grant.NONE)
             .addUser("sven", hashedPass, List.of("admin_role"))
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 5471222..22258f1 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -60,6 +60,8 @@ causeway:
             - simple-superuser
             - foo
             - bar
+    restfulobjects:
+      basePath: /restful
 
 
 eclipselink:
@@ -77,7 +79,7 @@ resteasy:
     defaultPath: "/restful"
 
 server:
-  max-http-header-size: 16KB
+  max-http-request-header-size: 16KB
 
 spring:
   banner: