Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-956 OpenJPA 2.0 iteration 5 primary task
  3. OPENJPA-990

setHint should return IllegalArgumentException for invalid query/lock timeout values

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M2
    • 2.0.0-M2
    • query
    • None

    Description

      JPA2 public draft spec section 3.6.1 Query Interface notes that Query.setHint() should throw a IllegalArgumentException if a supplied hint value is not valid for a given implementation.
      For lock/query timeout, any user supplied value < -1 is invalid and should throw an exception, which is not occurring.

      Attachments

        1. OPENJPA-990_20090326.patch
          13 kB
          Donald Woods
        2. OPENJPA-990.patch
          11 kB
          Donald Woods

        Activity

          People

            drwoods Donald Woods
            drwoods Donald Woods
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: