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

JPA: Standalone annotations lose properties when become nested

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.3.0.M2
    • Fix Version/s: 3.3.0.M3
    • Component/s: hibernate
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. Add standalone annotation to type scope and fill all possible parameters with test values
      (ex @NamedQuery(name = "hq", query = "query", readOnly = true, flushMode = ALWAYS,
      cacheable = true, cacheMode = GET, cacheRegion = "2", fetchSize = 2, timeout = 2)
      2. Open JPA Details view and go to ui for the annotation
      3. Add another annotation with the same type
      (Queries->Add, select type "Named Query(hibernate)")
      4. Go to source and check that all the parameters of the first annotation still exits

      Every annotation should be tested separately

      Show
      1. Add standalone annotation to type scope and fill all possible parameters with test values (ex @NamedQuery(name = "hq", query = "query", readOnly = true, flushMode = ALWAYS, cacheable = true, cacheMode = GET, cacheRegion = "2", fetchSize = 2, timeout = 2) 2. Open JPA Details view and go to ui for the annotation 3. Add another annotation with the same type (Queries->Add, select type "Named Query(hibernate)") 4. Go to source and check that all the parameters of the first annotation still exits Every annotation should be tested separately

      Description

      We have 4 annotations which can be standalone and nestable:
      1. NamedQuery(->NamedQueries)
      2. NamedNativeQuery(->NamedNativeQueries)
      3. GenericGenerator(->GenericGenerators)
      4. TypeDef(->TypeDefs)

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            jpeterka Jiri Peterka added a comment -

            Verified in JBDS 5.0.0.m3, H24, Linxu64

            Show
            jpeterka Jiri Peterka added a comment - Verified in JBDS 5.0.0.m3, H24, Linxu64
            Hide
            dgeraskov Dmitry Geraskov added a comment -

            The issues is not fixed for Hibernate NamedQuery and NamedNativeQuery

            Show
            dgeraskov Dmitry Geraskov added a comment - The issues is not fixed for Hibernate NamedQuery and NamedNativeQuery
            Hide
            jpeterka Jiri Peterka added a comment -

            Will be checked in further builds

            Show
            jpeterka Jiri Peterka added a comment - Will be checked in further builds
            Hide
            jpeterka Jiri Peterka added a comment -

            Verified in jbdevstudio-product-eap-linux-gtk-x86_64-5.0.0.v201109142301R-H31-M3.jar
            , Fedora 15, 64-bit. Related issue reported - JBIDE-9718

            Show
            jpeterka Jiri Peterka added a comment - Verified in jbdevstudio-product-eap-linux-gtk-x86_64-5.0.0.v201109142301R-H31-M3.jar , Fedora 15, 64-bit. Related issue reported - JBIDE-9718

              People

              • Assignee:
                jpeterka Jiri Peterka
                Reporter:
                dgeraskov Dmitry Geraskov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development