Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-673

Entity using Generated Value for primary key and a Version field and no DetachedStae fails to merge

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Entities using GeneratedValue for primary key, a version field an dno detached state fails to merge.

      The issue lies with identifying :"what makes a new instance?"

      It is not obvious why VersionAttachStrategy does not use version field to detect newness. Instead it depends on detached state which is obviously null for instances not using a Detached State.

      Can someone shade some light on why VersionAttachStrategy ignores version field to detect newness?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ppoddar@apache.org Pinaki Poddar
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: