Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-686

Ability to attach a transient object

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • api, specification, tck
    • None

    Description

      As per this thread
      http://mail-archives.apache.org/mod_mbox/db-jdo-user/200808.mbox/%3C48AD77AA.5090308@artnology.com%3E
      the ability to call pm.makePersistent(obj) with a transient object where that transient object has its identity set and where it corresponds to an object in the datastore. Obviously that would only work for application-identity (since it has PK fields, whereas datastore-id has none so "id" not really defined by the object).

      One option for datastore-identity would be to have a new method like
      pm.makePersistentForIdentity(Object obj, Object id);
      This would obviously not allow you to persist by reachability, so whether we just don't permit it for datastore-identity is one option, or alternatively pass in a Map of Object keyed by the identity.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            andyj Andy Jefferson

            Dates

              Created:
              Updated:

              Issue deployment