Torque
  1. Torque
  2. TORQUE-180

It should be possible to have the save() method in peers instead of in the dbObject classes

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-beta1
    • Component/s: Generator
    • Labels:
      None

      Description

      Currently, the save() method is the only method in the dbObject classes which access the database.
      It should be possible to generate dbObject classes which do not access the database at all and have all database related functionality in the peer classes instead.
      It needs to be discussed which mode should be the default mode.

        Activity

        Hide
        Thomas Fox added a comment -

        After discussion on the dev list, proceed as following

        • create a common template for save methods which can be used from both the peers as well as the dbObject classes
        • make the alreadyInSave flag of a dbObject visible to the outside
        Show
        Thomas Fox added a comment - After discussion on the dev list, proceed as following create a common template for save methods which can be used from both the peers as well as the dbObject classes make the alreadyInSave flag of a dbObject visible to the outside

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Thomas Fox
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development