Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv14128/sf/hibernate/test
Modified Files:
FooBarTest.java PerformanceTest.java TestCase.java
Log Message:
redesigned configuration API
Index: FooBarTest.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/FooBarTest.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** FooBarTest.java 22 Jan 2003 13:35:18 -0000 1.14
--- FooBarTest.java 26 Jan 2003 01:33:36 -0000 1.15
***************
*** 22,26 ****
import junit.framework.TestSuite;
import net.sf.hibernate.Databinder;
- import net.sf.hibernate.Environment;
import net.sf.hibernate.FlushMode;
import net.sf.hibernate.Hibernate;
--- 22,25 ----
***************
*** 33,36 ****
--- 32,36 ----
import net.sf.hibernate.Session;
import net.sf.hibernate.Transaction;
+ import net.sf.hibernate.cfg.Environment;
import net.sf.hibernate.connection.ConnectionProvider;
import net.sf.hibernate.connection.DriverManagerConnectionProvider;
Index: PerformanceTest.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/PerformanceTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PerformanceTest.java 5 Jan 2003 02:11:23 -0000 1.3
--- PerformanceTest.java 26 Jan 2003 01:33:36 -0000 1.4
***************
*** 3,6 ****
--- 3,7 ----
import net.sf.hibernate.*;
+ import net.sf.hibernate.cfg.*;
import net.sf.hibernate.connection.ConnectionProvider;
import net.sf.hibernate.connection.ConnectionProviderFactory;
Index: TestCase.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/TestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TestCase.java 5 Jan 2003 02:11:23 -0000 1.3
--- TestCase.java 26 Jan 2003 01:33:36 -0000 1.4
***************
*** 2,7 ****
package net.sf.hibernate.test;
! import net.sf.hibernate.*;
! import net.sf.hibernate.cfg.*;
import net.sf.hibernate.dialect.Dialect;
import net.sf.hibernate.tool.hbm2ddl.SchemaExport;
--- 2,7 ----
package net.sf.hibernate.test;
! import net.sf.hibernate.SessionFactory;
! import net.sf.hibernate.cfg.Configuration;
import net.sf.hibernate.dialect.Dialect;
import net.sf.hibernate.tool.hbm2ddl.SchemaExport;
***************
*** 22,29 ****
public static void exportSchema(String[] files) throws Exception {
! Datastore ds = Hibernate.createDatastore();
for (int i=0; i<files.length; i++) {
! ds.storeResource( "net/sf/hibernate/test/" + files[i], TestCase.class.getClassLoader() );
}
--- 22,29 ----
public static void exportSchema(String[] files) throws Exception {
! Configuration ds = new Configuration();
for (int i=0; i<files.length; i++) {
! ds.addResource( "net/sf/hibernate/test/" + files[i], TestCase.class.getClassLoader() );
}
|