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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • LATER
    • 3.3.0.M3
    • hibernate
    • None
    • jbdevstudio-product-eap-linux-gtk-x86_64-5.0.0.v201109142301R-H31-M3.jar, Fedora 15, 64-bit

    • 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
    • -

      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

              kaers@redhat.com Koen Aers
              jpeterka_jira Jiri Peterka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: