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

Mappings in H4 configuration are not built by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 3.3.0.Beta1
    • 3.3.0.M5
    • hibernate
    • None

      When JPA configuration is used we call configure(Properties properties, Map workingVars) method and as a side effect mappings were built earlier.
      But in Hibernate 4 this doesn't happen. So we need to call buildMappings evidently.

      Test Case:
      1. Create JPA Project with hibernate 4 with some mapping
      2. Set Console Configuration Hierbante version to 4.0
      3. Expand Configuration node in the tree
      4. Right click on the mapped class-open in HQL Editor
      5. Change query to "from <myPack>.<MyClass> s where s." and press ctrl+space for code completion
      6. FAILURE: code completion don't show properties as completion proposals
      7. Expands SessionFactory node in the tree
      8. Step6 how shows correct completion proposals

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

              Created:
              Updated:
              Resolved: