XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Works for Me
    • Trunk
    • 17.12.01
    • Confluence, framework
    • None

    Description

      As explained paul_foxworthy in this comment

      I don't expect entity-auto to handle every possible situation. I'd suggest we keep it simple and 80-20 rather than fiddle with it forever.
      There's an error message if you try to push it too hard which lists what it can do:
      "1. a single OUT pk for primary auto-sequencing, " +
      "2. a single INOUT pk for primary auto-sequencing with optional override, " +
      "3. a 2-part pk with one part IN (existing primary pk) and one part OUT (the secondary pk to sub-sequence), " +
      "4. a N-part pk with N-1 part IN and one party OUT only (missing pk is a sub-sequence mainly for entity assoc), " +
      "5. all pk fields are IN for a manually specified primary key");
      So it can deliver one new id in an out parameter, but not more than one. I can live with that. For more complex situations, we can write a service rather than use entity auto.

      I suggest we document it in services.xsd and the Service Engine Guide, explaining what the possiblities are based on the message above. BTW I had a look at services.xsd and it's not yet documented enough.

      Attachments

        Activity

          People

            paulfoxworthy Paul Foxworthy
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: