Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9718

Multiple NamedQuery is not read by JPA details where there is NamedQueries after them

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0.M3
    • Fix Version/s: LATER
    • Component/s: hibernate
    • Labels:
      None
    • Environment:
      jbdevstudio-product-eap-linux-gtk-x86_64-5.0.0.v201109142301R-H31-M3.jar, Fedora 15, 64-bit
    • Steps to Reproduce:
      Hide

      1. Create JPA Hibernate JPA 2.x project
      2. Create entity
      3. Use code in description

      Show
      1. Create JPA Hibernate JPA 2.x project 2. Create entity 3. Use code in description

      Description

      Try this:

      @NamedQuery(name = "query1", query = "select f from Dog f", readOnly = true, flushMode = ALWAYS,cacheable = true, cacheMode = GET, cacheRegion = "2", fetchSize = 2, timeout = 2)
      @javax.persistence.NamedQuery(name = "query2", query = "select f from Dog f")
      @NamedQueries(

      {@javax.persistence.NamedQuery(name = "query3", query = "abcd"),@javax.persistence.NamedQuery(name = "query4")}

      )

      See in JPA Details, there is only query1, query3, query4. query2 is missing. When last row commented, query2 appears

        Gliffy Diagrams

          Activity

          Hide
          dgeraskov Dmitry Geraskov added a comment -

          This is how Dali processes the container annotations. I guess hiberante does it in the same way, could you please create the issue in their bugzilla, so they be aware of it.

          Show
          dgeraskov Dmitry Geraskov added a comment - This is how Dali processes the container annotations. I guess hiberante does it in the same way, could you please create the issue in their bugzilla, so they be aware of it.
          Hide
          jpeterka Jiri Peterka added a comment -

          Related bugzilla record created - https://bugs.eclipse.org/bugs/show_bug.cgi?id=360841

          Show
          jpeterka Jiri Peterka added a comment - Related bugzilla record created - https://bugs.eclipse.org/bugs/show_bug.cgi?id=360841
          Hide
          jpeterka Jiri Peterka added a comment -

          Dali issue not yet fixed

          Show
          jpeterka Jiri Peterka added a comment - Dali issue not yet fixed

            People

            • Assignee:
              koen.aers Koen Aers
              Reporter:
              jpeterka Jiri Peterka
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development