Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-8183

Also support synonyms for schema validation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 4.2.1, 4.3.0.Beta2
    • Component/s: hibernate-core
    • Labels:
    • Environment:
      JBoss EAP 5.1.1
    • Last commented by a user?:
      true

      Description

      At the moment, if you activate "hibernate.hbm2ddl.auto=validate", then hbm2ddl will fail since it won't look for synonyms.

      The related code seems to be in DatabaseMetadata :

        private static final String[] TYPES = {"TABLE", "VIEW"};
      

      might be replaced with something like

        private static final String[] TYPES = {"TABLE", "VIEW", "SYNONYM"};
      

      I'm gonna have a look at the code to see if I can provide a patch.
      I also found some seemingly related JIRAs, but I filed this one since I didn't find something specific to synonyms (I'll also have to get my hands dirty with Gradle, fingers crossed ).

      Thanks

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: