Author: max.andersen(a)jboss.com
Date: 2006-11-30 05:34:17 -0500 (Thu, 30 Nov 2006)
New Revision: 10890
Modified:
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/test/jdbc2cfg/OracleViewsTest.java
Log:
force oraclemetadatadialect on oracle related test
Modified:
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/test/jdbc2cfg/OracleViewsTest.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/test/jdbc2cfg/OracleViewsTest.java 2006-11-30
10:33:09 UTC (rev 10889)
+++
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/test/jdbc2cfg/OracleViewsTest.java 2006-11-30
10:34:17 UTC (rev 10890)
@@ -9,6 +9,8 @@
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.hibernate.cfg.JDBCMetaDataConfiguration;
+import org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect;
import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.Oracle9Dialect;
import org.hibernate.mapping.PersistentClass;
@@ -55,6 +57,10 @@
return dialect instanceof Oracle9Dialect;
}
+ protected void configure(JDBCMetaDataConfiguration cfg) {
+ cfg.setProperty( "hibernatetool.metadatadialect",
OracleMetaDataDialect.class.getName() );
+ }
+
public void testViewAndSynonyms() throws SQLException {
PersistentClass classMapping = cfg.getClassMapping(toClassName("basicview")
);
assertNotNull(classMapping);
Show replies by date