We're updating the issue view to help you get more done. 

Also support synonyms for schema validation

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 :

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

might be replaced with something like

1 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

Environment

JBoss EAP 5.1.1

Status

Assignee

Brett Meyer

Reporter

Baptiste Mathus

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

3.3.2

Priority

Major