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

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development