/*
 *  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.events;

import java.time.LocalDateTime;

import javax.jdo.annotations.DatastoreIdentity;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;

import org.apache.isis.applib.annotation.DomainObject;
import org.apache.isis.applib.annotation.Editing;
import org.apache.isis.applib.annotation.Property;

import lombok.Getter;
import lombok.Setter;
import lombok.val;

import demoapp.dom.events.EventsDemo.UiButtonEvent;

@PersistenceCapable(identityType = IdentityType.DATASTORE, schema = "demo" )
@DatastoreIdentity(strategy = IdGeneratorStrategy.IDENTITY, column = "id")
@DomainObject
public class EventLogEntry {

    @javax.jdo.annotations.Column(allowsNull = "false")
    @Property(editing = Editing.DISABLED)
    @Getter @Setter
    private String event;

    public static EventLogEntry of(UiButtonEvent even) {
        val x = new EventLogEntry();
        x.setEvent("Button clicked " + LocalDateTime.now().toString());
        return x;
    }

    public static String version() {
        return "1.0.0";
    }

}

@@ -879,16 +879,59 @@
 ateTime;
+%0Aimport java.time.format.DateTimeFormatter;
 %0A%0Aimport
@@ -1115,16 +1115,65 @@
 pable;%0A%0A
+import org.apache.isis.applib.annotation.Action;%0A
 import o
@@ -1634,16 +1634,303 @@
 ntry %7B%0A%0A
+    public static EventLogEntry of(UiButtonEvent even) %7B%0A        val x = new EventLogEntry();%0A        x.setEvent(%22Button clicked %22 + LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_TIME));%0A        return x;%0A    %7D%0A    %0A    public String title() %7B%0A        return getEvent();%0A    %7D%0A%0A
     @jav
@@ -2074,261 +2074,522 @@
     
-public 
+// demon
 st
+r
 ati
-c EventLogEntry of(UiButtonEvent even) %7B%0A        val x = new EventLogEntry();
+ng 2 methods of changing a property ...%0A    // - inline edit%0A    // - via action
 %0A    
+%0A
     
-x.setEvent(%22Button clicked %22 + LocalDateTime.now().toString());%0A        return x;%0A    %7D%0A%0A    public static String version() %7B%0A        return %221.0.0%22
+public static enum Acknowledge %7B%0A        IGNORE,%0A        CRITICAL%0A    %7D%0A    %0A    @javax.jdo.annotations.Column(allowsNull = %22true%22)%0A    @Property(editing = Editing.ENABLED)%0A    @Getter @Setter%0A    private Acknowledge acknowledge;%0A    %0A    @Action(associateWith = %22acknowledge%22)%0A    public EventLogEntry acknowledge(Acknowledge acknowledge) %7B%0A        setAcknowledge(acknowledge);%0A        return this
 ;%0A    %7D
+%0A    
 %0A%0A%7D%0A

add inline editing demo to show the issue (EventDemo)