Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1582

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.0.0-beta2
    • 2.0.0, 2.0.1, 2.0.2, 2.1.0
    • jdbc
    • 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.

      Attachments

        Issue Links

          Activity

            People

              kwsutter Kevin W. Sutter
              allee8285 Albert Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: