[hibernate-commits] Hibernate SVN: r10890 - branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/test/jdbc2cfg
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Thu Nov 30 05:34:18 EST 2006
Author: max.andersen at 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);
More information about the hibernate-commits
mailing list