[ 
https://issues.apache.org/jira/browse/ISIS-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16384559#comment-16384559
 ] 

Andi Huber commented on ISIS-1721:
----------------------------------

Just tested with in memory HSQL-DB against 2.0.0-M1. Seems no longer to be an 
issue.

Behaves as expected, when creating the domain object via user-interface ... 
{code:java}
@DomainObject
public class HelloWorldObject {
    @javax.jdo.annotations.Column(allowsNull = "false")
    @Property(editing = Editing.ENABLED)
    @lombok.Getter @lombok.Setter
    private boolean defaultingTrue = true;
}
{code}

> Isis should optionally not override the default values of entities.
> -------------------------------------------------------------------
>
>                 Key: ISIS-1721
>                 URL: https://issues.apache.org/jira/browse/ISIS-1721
>             Project: Isis
>          Issue Type: Bug
>    Affects Versions: 1.10.0
>            Reporter: Martin Grigorov
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> (recreated from ISIS-1082, which has got incorrect commits against it).
> In a domain entity I wanted to use a property with a default value:
> {code}
> private boolean flag = true;
> // getter & setter
> {code}
> Surprisingly Isis re-initialized its value to 'false' after creating the 
> instance by using the setter.
> http://isis.apache.org/more-advanced-topics/how-to-07-010-How-to-set-up-the-initial-value-of-a-property-programmatically.html
>  explains the behavior but maybe we should rething whether Isis should 
> initialize the properties at all.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to