From: <one...@us...> - 2003-02-03 12:11:41
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test In directory sc8-pr-cvs1:/tmp/cvs-serv6186/sf/hibernate/test Modified Files: TestCase.java Log Message: minor changes and fixed a mistype Index: TestCase.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/TestCase.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TestCase.java 26 Jan 2003 01:33:36 -0000 1.4 --- TestCase.java 3 Feb 2003 12:11:37 -0000 1.5 *************** *** 22,36 **** 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() ); } dialect = Dialect.getDialect(); ! new SchemaExport(ds).create(true, true); ! sessions = ds.buildSessionFactory( /*new TestInterceptor()*/ ); } --- 22,36 ---- public static void exportSchema(String[] files) throws Exception { ! Configuration cfg = new Configuration(); for (int i=0; i<files.length; i++) { ! cfg.addResource( "net/sf/hibernate/test/" + files[i], TestCase.class.getClassLoader() ); } dialect = Dialect.getDialect(); ! new SchemaExport(cfg).create(true, true); ! sessions = cfg.buildSessionFactory( /*new TestInterceptor()*/ ); } |