Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The id constructor conflicts with the constructor for any classes that have exactly one required attribute of the same datatype of the identifier. For example for the this class:

      class Conflicting [
      string one nullable;
      integer two;
      datetime three nullable;
      ]

      the following conflicting constructors will be generated:

      public InkomensToetsResultaat(Long two)

      { super(two); }

      protected InkomensToetsResultaat(Long id)

      { super(id); }

        Activity

        Hide
        Johan Vogelzang added a comment -

        For the given example two constructors will be generated:

        public Conflicting(Integer two)

        {super(two);}

        protected Conflicting(Long id)

        {super(id);}

        Integer attributes declared in the model will be generated as java.lang.Integer in the java class, not as java.lang.Long.

        Show
        Johan Vogelzang added a comment - For the given example two constructors will be generated: public Conflicting(Integer two) {super(two);} protected Conflicting(Long id) {super(id);} Integer attributes declared in the model will be generated as java.lang.Integer in the java class, not as java.lang.Long.

          People

          • Assignee:
            Unassigned
            Reporter:
            Johan Vogelzang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: