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

JPA: take into account hibernate.default_schema/hibernate.default_catalog when validate Table

    XMLWordPrintable

Details

    • A new feature has been added that allows for Hibernate tooling to take into account the parameters: hibernate.default_schema and hibernate.default_catalog, when validating the existence of a table.
    • Documented as Feature Request

    Description

      JPA validator doen't take into account hibernate.default_schema/hibernate.default_catalog when validates Table existance.

      Test case:
      1. Create table mytable in schema test
      2. in Persistence.xml add hibernate.default_schema=test
      3. cerate Entity Mytable without @Table(schema="test")
      4. Make a DTP connection to the databse
      OBSERVE: wrong error appiared (Table "Mytable" cannot be sesolved)
      add @Table(schema="test") - error disappeared

      Probably the properties should be processed like the project properties (Oveddide default schema/catalog)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: