Cayenne
  1. Cayenne
  2. CAY-811

Meaningful identity columns: user provided PK values are ignored

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2 branch, 2.0 branch, 3.0
    • Fix Version/s: Short term future
    • Component/s: Core Library
    • Labels:
      None

      Description

      I found it when testing on 3.0, although I suspect this is a problem on 2.0 and 1.2 as well. When a meaningful PK is set by the user and is also mapped as a DB-generated PK, Cayenne incorrectly overrides user value. There are two places where this must be fixed:

      1. DataDomainInsertBucket (I will commit the fix shortly)
      2. InsertBatchQueryBuilder (this is a bit more hairy - as the batch syntax will be affected depending on whether user provided a value or not)

        Activity

        Andrus Adamchik created issue -
        Ari Maniatis made changes -
        Field Original Value New Value
        Fix Version/s 3.0 [ 10091 ]
        Fix Version/s Short term future [ 10125 ]
        Henri Yandell made changes -
        Project Import Sat Mar 21 00:51:04 PDT 2009 [ 1237621864637 ]
        Ari Maniatis made changes -
        Workflow jira [ 12456086 ] Cayenne workflow [ 12486510 ]

          People

          • Assignee:
            Andrus Adamchik
            Reporter:
            Andrus Adamchik
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development