From 1df4b2ea3c98c74f3b6bbd42e266ee5c7ad60d27 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Tue, 7 May 2013 16:02:37 -0400 Subject: [PATCH] HHH-8226 table synonyms cannot find columns on Oracle --- .../internal/ConnectionProviderInitiator.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionProviderInitiator.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionProviderInitiator.java index b458dd2ce3..7e684f02f3 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionProviderInitiator.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionProviderInitiator.java @@ -268,6 +268,9 @@ public class ConnectionProviderInitiator implements StandardServiceInitiator CONDITIONAL_PROPERTIES; + + static { + CONDITIONAL_PROPERTIES = new HashMap(); + // Oracle requires that includeSynonyms=true in order for getColumns to work using a table synonym name. + CONDITIONAL_PROPERTIES.put( Environment.ENABLE_SYNONYMS, "includeSynonyms" ); } }