Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1 [LEGACY], 1.2 branch
    • Fix Version/s: 3.0M3
    • Component/s: Core Library
    • Labels:
      None

      Description

      Test suite submitted by Mikaël Cluseau:

      http://www.objectstyle.org/cayenne/lists/cayenne-devel/2005/06/0036.html

      fails when an object is created, committed and then updated and committed. SQL UPDATE updates an ID value for no good reason. My investigation shows that this is due to Integer vs. Long PK... BIGINT PK columns default mapping is Long per JDBC standard. So on fetch it is converted to Long. PK generator on the other hand has a hardcoded behavior to create Integer ... So two values behave as if they are non-equal and generate a bogus update. We need to fix PK generator to use default JDBC to java mapping instead of assuming Integer.

      Similar situation has been discussed before:

      http://www.objectstyle.org/cayenne/lists/cayenne-devel/2005/03/0086.html

        Issue Links

          Activity

          Ari Maniatis made changes -
          Workflow jira [ 12455876 ] Cayenne workflow [ 12486816 ]
          Henri Yandell made changes -
          Project Import Sat Mar 21 00:51:04 PDT 2009 [ 1237621864637 ]
          Ari Maniatis made changes -
          Fix Version/s 3.0 [ 10091 ]
          Fix Version/s 3.0M3 [ 10122 ]
          Andrus Adamchik made changes -
          Fix Version/s 3.0 [ 10091 ]
          Fix Version/s UNDEFINED FUTURE [ 10031 ]
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Andrus Adamchik made changes -
          Link This issue refrences CAY-314 [ CAY-314 ]
          Andrus Adamchik made changes -
          Link This issue is referenced by CAY-643 [ CAY-643 ]
          Andrus Adamchik made changes -
          Fix Version/s AFTER 1.2 [ 10031 ]
          Fix Version/s 1.2 [DEV] [ 10030 ]
          Hide
          Andrus Adamchik added a comment -

          long pk support won't be in 1.2

          Show
          Andrus Adamchik added a comment - long pk support won't be in 1.2
          Andrus Adamchik made changes -
          Field Original Value New Value
          Attachment cay-329-tests-patch.txt [ 10230 ]
          Hide
          Andrus Adamchik added a comment -

          patch contains test cases to reproduce the issue... however the fix will depend on CAY-314

          Show
          Andrus Adamchik added a comment - patch contains test cases to reproduce the issue... however the fix will depend on CAY-314
          Hide
          Andrus Adamchik added a comment -

          See CAY-314 - this issue will depend on it.

          Show
          Andrus Adamchik added a comment - See CAY-314 - this issue will depend on it.
          Andrus Adamchik created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development