glassfish
  1. glassfish
  2. GLASSFISH-3084

toplink.cache.shared.default=true has (the default) causes merge after delete to fail

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.0pe
    • Fix Version/s: not determined
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      3,084
    • Status Whiteboard:
      Hide

      HIGH

      Show
      HIGH

      Description

      I have some code which in three separate transactions performs the following:

      If an entity is deleted, it cannot be re-created with a merge operations unless
      the toplink.cache.shared.default=false.

      Imagine the entity E1 exists and the following operations are performed in
      separate transactions:

      • Delete entity E1
      • merge(E1);

      You would expect after this for E1 to exist in the database (with new values)
      However this will not be the case unless you either specify the prompery
      toplink.cache.shared.default=false, or you use persist instead.

        Activity

        Hide
        gfbugbridge added a comment -

        <BT6563754>

        Show
        gfbugbridge added a comment - <BT6563754>
        Hide
        pkrogh added a comment -

        P4 high. Easy workaround - should not delay Beta.

        Show
        pkrogh added a comment - P4 high. Easy workaround - should not delay Beta.
        Hide
        xj added a comment -

        attach TP.

        Show
        xj added a comment - attach TP.
        Hide
        xj added a comment -

        Created an attachment (id=1763)
        try to reproduce this issue

        Show
        xj added a comment - Created an attachment (id=1763) try to reproduce this issue
        Hide
        xj added a comment -

        It could not be reproduced with the attached TP. Could someone points me what I
        lost in it. Thanks.

        Show
        xj added a comment - It could not be reproduced with the attached TP. Could someone points me what I lost in it. Thanks.
        Hide
        Tom Mueller added a comment -

        Bulk change to set fix version to "not determined" where the issue is open but the value is for a released version.

        Show
        Tom Mueller added a comment - Bulk change to set fix version to "not determined" where the issue is open but the value is for a released version.

          People

          • Assignee:
            tware
            Reporter:
            nullop
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: