OpenJPA
  1. OpenJPA
  2. OPENJPA-1052 OpenJPA 2.0 iteration 7 primary task
  3. OPENJPA-1069

OrderBy annotation applied to an element collection of basic type doesn't require property or field name

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-M2
    • Component/s: None
    • Labels:
      None

      Activity

      Hide
      Thomas O Rowe added a comment -

      Re-verified on Linux AMD64 w/ IBM SE6.

      Show
      Thomas O Rowe added a comment - Re-verified on Linux AMD64 w/ IBM SE6.
      Hide
      Fay Wang added a comment -

      (1) Add support for
      @ElementCollection
      @OrderBy("DESC")
      private Collection<String> nickNames = new ArrayList<String>();

      (2) throw exception for
      @ElementCollection
      @OrderBy
      Collection<Address> addrs = new ArrayList<Address>();

      When the element of the collection is an embeddable, the property or field name must be specified in the orderBy item.

      Show
      Fay Wang added a comment - (1) Add support for @ElementCollection @OrderBy("DESC") private Collection<String> nickNames = new ArrayList<String>(); (2) throw exception for @ElementCollection @OrderBy Collection<Address> addrs = new ArrayList<Address>(); When the element of the collection is an embeddable, the property or field name must be specified in the orderBy item.

        People

        • Assignee:
          Fay Wang
          Reporter:
          Fay Wang
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development