OpenJPA
  1. OpenJPA
  2. OPENJPA-1582

@OrderColumn(updatable=false) may have the order column field updated

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Not a Problem
    • Affects Version/s: 2.0.0-beta2
    • Fix Version/s: 2.0.0, 2.0.1, 2.0.2, 2.1.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      When a collection with orderColumn set updatable=false,

      @ElementCollection//(fetch=FetchType.EAGER)
      @OrderColumn(updatable=false)
      private List<String> nonUpdableAnnotatedElements;

      when collection element is updated, the order column processing performs a delete/insert sequence. The problem is that the implicit order column field is also updated while updatable=false.

        Issue Links

          Activity

          Albert Lee created issue -
          Jeremy Bauer made changes -
          Field Original Value New Value
          Link This issue is part of OPENJPA-1074 [ OPENJPA-1074 ]
          Kevin Sutter made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Kevin Sutter [ kwsutter ]
          Fix Version/s 2.0.2 [ 12315257 ]
          Fix Version/s 2.1.0 [ 12314542 ]
          Fix Version/s 2.0.1 [ 12314532 ]
          Fix Version/s 2.0.0 [ 12314019 ]
          Resolution Not A Problem [ 8 ]
          Kevin Sutter made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Kevin Sutter
              Reporter:
              Albert Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development