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

JPA: Standalone annotations lose properties when become nested

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.3.0.M3
    • 3.3.0.M2
    • hibernate
    • None
    • 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)

      Attachments

        Issue Links

          Activity

            People

              jpeterka_jira Jiri Peterka (Inactive)
              dgeraskov Dmitry Geraskov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: