Uploaded image for project: 'Hibernate OGM'
  1. OGM-405

Enhance GridDialect contract to return values generated in the store

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      With the support for CouchDB's revision attribute we have the first case where values are generated in the data store. The currently developed implementation performs a separate read of the record after an insert/update, in case a property is marked as @Generated.

      In certain cases this read could be avoided when the generated values are returned by the write itself. Taking again CouchDB as example, the updated revision is part of the response document returned by a POST or PUT. This could be leveraged by changing the GridDialect#updateTuple() and updateAssociation() methods to return a Tuple with properties generated by the data store.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: