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

[causeway-app-simpleapp] branch CAUSEWAY-3514-and-3515 updated: SimpleObject: fixes annotations

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

ahuber pushed a commit to branch CAUSEWAY-3514-and-3515
in repository https://gitbox.apache.org/repos/asf/causeway-app-simpleapp.git


The following commit(s) were added to refs/heads/CAUSEWAY-3514-and-3515 by this push:
     new 04c41cb  SimpleObject: fixes annotations
04c41cb is described below

commit 04c41cb36308d5af336dbcc48eecddb91def4b9a
Author: Andi Huber <ah...@apache.org>
AuthorDate: Tue Jul 4 06:27:00 2023 +0200

    SimpleObject: fixes annotations
---
 .../domainapp/modules/simple/dom/so/SimpleObject.java   | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.java b/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.java
index 2cc00c5..5e21e9c 100644
--- a/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.java
+++ b/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.java
@@ -29,7 +29,7 @@ import org.apache.causeway.applib.annotation.DomainObject;
 import org.apache.causeway.applib.annotation.DomainObjectLayout;
 import org.apache.causeway.applib.annotation.Editing;
 import org.apache.causeway.applib.annotation.MemberSupport;
-import org.apache.causeway.applib.annotation.ObjectSupport;
+import org.apache.causeway.applib.annotation.ObjectLifecycle;
 import org.apache.causeway.applib.annotation.Optionality;
 import org.apache.causeway.applib.annotation.PromptStyle;
 import org.apache.causeway.applib.annotation.Property;
@@ -50,6 +50,9 @@ import org.apache.causeway.extensions.pdfjs.applib.annotations.PdfJsViewer;
 import static org.apache.causeway.applib.annotation.SemanticsOf.IDEMPOTENT;
 import static org.apache.causeway.applib.annotation.SemanticsOf.NON_IDEMPOTENT_ARE_YOU_SURE;
 
+import domainapp.modules.simple.SimpleModule;
+import domainapp.modules.simple.types.Name;
+import domainapp.modules.simple.types.Notes;
 import lombok.AccessLevel;
 import lombok.Getter;
 import lombok.NoArgsConstructor;
@@ -57,10 +60,6 @@ import lombok.Setter;
 import lombok.ToString;
 import lombok.val;
 
-import domainapp.modules.simple.SimpleModule;
-import domainapp.modules.simple.types.Name;
-import domainapp.modules.simple.types.Notes;
-
 
 @PersistenceCapable(
     schema = SimpleModule.SCHEMA,
@@ -208,22 +207,22 @@ public class SimpleObject implements Comparable<SimpleObject>, CalendarEventable
     }
 
 
-    @ObjectSupport
+    @ObjectLifecycle
     public void persisting() {
         System.out.println("persisting");
     }
 
-    @ObjectSupport
+    @ObjectLifecycle
     public void persisted() {
         System.out.println("persisted");
     }
 
-    @ObjectSupport
+    @ObjectLifecycle
     public void updating() {
         System.out.println("updating");
     }
 
-    @ObjectSupport
+    @ObjectLifecycle
     public void updated() {
         System.out.println("updated");
     }