You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2023/01/31 07:15:39 UTC

[causeway-app-helloworld] branch jpa-SNAPSHOT updated (23c197b -> cffe711)

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

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


    from 23c197b  reorg imports.
     new 87b80f1  updates import stmt of .editorconfig
     new cffe711  optimizes imports

The 2 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.


Summary of changes:
 .editorconfig                                      |  2 +-
 .../modules/hello/dom/hwo/HelloWorldObject.java    | 28 +++++++++++++++++-----
 .../modules/hello/dom/hwo/HelloWorldObjects.java   | 13 +++++++---
 .../java/domainapp/modules/hello/types/Notes.java  |  8 ++++++-
 src/main/java/domainapp/webapp/AppManifest.java    | 10 ++++----
 src/main/java/domainapp/webapp/HelloWorldApp.java  |  4 ++--
 6 files changed, 47 insertions(+), 18 deletions(-)


[causeway-app-helloworld] 01/02: updates import stmt of .editorconfig

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

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

commit 87b80f185ea6181d5ecc311f2d1eadb810305787
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Tue Jan 31 06:56:02 2023 +0000

    updates import stmt of .editorconfig
---
 .editorconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.editorconfig b/.editorconfig
index 09689d1..1ddde32 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -107,7 +107,7 @@ ij_java_for_statement_wrap = off
 ij_java_generate_final_locals = false
 ij_java_generate_final_parameters = false
 ij_java_if_brace_force = never
-ij_java_imports_layout = java.**,|,$java.**,|,javax.**,|,$javax.**,|,com.**,|,$com.**,|,org.**,|,$org.**,|,org.springframework.**,|,$org.springframework.**,|,org.apache.isis.**,|,$org.apache.isis.**,|,org.isisaddons.**,|,$org.isisaddons.**,|,org.incode.**,|,$org.incode.**,|,com.ecpnv.**,|,$com.ecpnv.**,|,org.estatio.**,|,$org.estatio.**,|,lombok.**,lombok.experimental.**,lombok.extern.log4j.**,lombok.extern.**,|,*,|,$*
+ij_java_imports_layout = java.**,|,$java.**,|,javax.**,|,$javax.**,|,com.**,|,$com.**,|,org.**,|,$org.**,|,org.springframework.**,|,$org.springframework.**,|,org.apache.causeway.**,|,$org.apache.causeway.**,|,lombok.**,lombok.experimental.**,lombok.extern.log4j.**,lombok.extern.**,|,*,|,$*
 ij_java_indent_case_from_switch = true
 ij_java_insert_inner_class_imports = false
 ij_java_insert_override_annotation = true


[causeway-app-helloworld] 02/02: optimizes imports

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

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

commit cffe7117f6f6276f17d6f83db815e8eb9888e3fe
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Tue Jan 31 06:57:35 2023 +0000

    optimizes imports
---
 .../modules/hello/dom/hwo/HelloWorldObject.java    | 28 +++++++++++++++++-----
 .../modules/hello/dom/hwo/HelloWorldObjects.java   | 13 +++++++---
 .../java/domainapp/modules/hello/types/Notes.java  |  8 ++++++-
 src/main/java/domainapp/webapp/AppManifest.java    | 10 ++++----
 src/main/java/domainapp/webapp/HelloWorldApp.java  |  4 ++--
 5 files changed, 46 insertions(+), 17 deletions(-)

diff --git a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java
index b35fac5..b93ae56 100644
--- a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java
+++ b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java
@@ -1,21 +1,37 @@
 package domainapp.modules.hello.dom.hwo;
 
-import domainapp.modules.hello.types.Name;
-import domainapp.modules.hello.types.Notes;
-
 import java.util.Comparator;
 
 import javax.inject.Inject;
 import javax.inject.Named;
-import javax.persistence.*;
-
-import org.apache.causeway.applib.annotation.*;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.EntityListeners;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+import javax.persistence.UniqueConstraint;
+import javax.persistence.Version;
+
+import org.apache.causeway.applib.annotation.Action;
+import org.apache.causeway.applib.annotation.ActionLayout;
+import org.apache.causeway.applib.annotation.DomainObject;
+import org.apache.causeway.applib.annotation.DomainObjectLayout;
+import org.apache.causeway.applib.annotation.PropertyLayout;
+import org.apache.causeway.applib.annotation.Publishing;
+import org.apache.causeway.applib.annotation.SemanticsOf;
+import org.apache.causeway.applib.annotation.Title;
 import org.apache.causeway.applib.layout.LayoutConstants;
 import org.apache.causeway.applib.services.message.MessageService;
 import org.apache.causeway.applib.services.repository.RepositoryService;
 import org.apache.causeway.applib.services.title.TitleService;
 import org.apache.causeway.persistence.jpa.applib.integration.CausewayEntityListener;
 
+import domainapp.modules.hello.types.Name;
+import domainapp.modules.hello.types.Notes;
+
 @Entity
 @Table(
         schema="hello",
diff --git a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObjects.java b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObjects.java
index 9de72f5..20c0da5 100644
--- a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObjects.java
+++ b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObjects.java
@@ -1,16 +1,23 @@
 package domainapp.modules.hello.dom.hwo;
 
-import domainapp.modules.hello.types.Name;
-
 import java.util.List;
 
 import javax.annotation.Priority;
 import javax.inject.Inject;
 import javax.inject.Named;
 
-import org.apache.causeway.applib.annotation.*;
+import org.apache.causeway.applib.annotation.Action;
+import org.apache.causeway.applib.annotation.ActionLayout;
+import org.apache.causeway.applib.annotation.DomainService;
+import org.apache.causeway.applib.annotation.NatureOfService;
+import org.apache.causeway.applib.annotation.PriorityPrecedence;
+import org.apache.causeway.applib.annotation.PromptStyle;
+import org.apache.causeway.applib.annotation.RestrictTo;
+import org.apache.causeway.applib.annotation.SemanticsOf;
 import org.apache.causeway.applib.services.repository.RepositoryService;
 
+import domainapp.modules.hello.types.Name;
+
 @Named("hello.HelloWorldObjects")
 @DomainService(nature = NatureOfService.VIEW)
 @Priority(PriorityPrecedence.EARLY)
diff --git a/src/main/java/domainapp/modules/hello/types/Notes.java b/src/main/java/domainapp/modules/hello/types/Notes.java
index 583e2a0..95aed7e 100644
--- a/src/main/java/domainapp/modules/hello/types/Notes.java
+++ b/src/main/java/domainapp/modules/hello/types/Notes.java
@@ -5,7 +5,13 @@ import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
-import org.apache.causeway.applib.annotation.*;
+import org.apache.causeway.applib.annotation.Editing;
+import org.apache.causeway.applib.annotation.Optionality;
+import org.apache.causeway.applib.annotation.Parameter;
+import org.apache.causeway.applib.annotation.ParameterLayout;
+import org.apache.causeway.applib.annotation.Property;
+import org.apache.causeway.applib.annotation.PropertyLayout;
+import org.apache.causeway.applib.annotation.Where;
 
 @Property(editing = Editing.ENABLED, maxLength = Notes.MAX_LEN, optionality = Optionality.OPTIONAL)
 @PropertyLayout(multiLine = 10, hidden = Where.ALL_TABLES)
diff --git a/src/main/java/domainapp/webapp/AppManifest.java b/src/main/java/domainapp/webapp/AppManifest.java
index fe121a7..1ad5341 100644
--- a/src/main/java/domainapp/webapp/AppManifest.java
+++ b/src/main/java/domainapp/webapp/AppManifest.java
@@ -1,5 +1,10 @@
 package domainapp.webapp;
 
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.context.annotation.PropertySource;
+import org.springframework.context.annotation.PropertySources;
+
 import org.apache.causeway.applib.CausewayModuleApplibChangeAndExecutionLoggers;
 import org.apache.causeway.applib.CausewayModuleApplibMixins;
 import org.apache.causeway.core.config.presets.CausewayPresets;
@@ -11,11 +16,6 @@ import org.apache.causeway.viewer.restfulobjects.jaxrsresteasy.CausewayModuleVie
 import org.apache.causeway.viewer.wicket.applib.CausewayModuleViewerWicketApplibMixins;
 import org.apache.causeway.viewer.wicket.viewer.CausewayModuleViewerWicketViewer;
 
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Import;
-import org.springframework.context.annotation.PropertySource;
-import org.springframework.context.annotation.PropertySources;
-
 import domainapp.modules.hello.HelloWorldModule;
 
 @Configuration
diff --git a/src/main/java/domainapp/webapp/HelloWorldApp.java b/src/main/java/domainapp/webapp/HelloWorldApp.java
index e9e35aa..9ad441f 100644
--- a/src/main/java/domainapp/webapp/HelloWorldApp.java
+++ b/src/main/java/domainapp/webapp/HelloWorldApp.java
@@ -1,12 +1,12 @@
 package domainapp.webapp;
 
-import org.apache.causeway.core.config.presets.CausewayPresets;
-
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
 import org.springframework.context.annotation.Import;
 
+import org.apache.causeway.core.config.presets.CausewayPresets;
+
 @SpringBootApplication
 @Import({
     AppManifest.class,