Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1721

Isis should optionally not override the default values of entities.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.10.0
    • Fix Version/s: 2.0.0-M1
    • Component/s: None
    • Labels:
      None

      Description

      (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:

      private boolean flag = true;
      // getter & setter
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              hobrom Andi Huber
              Reporter:
              mgrigorov Martin Tzvetanov Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: