db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: jakarta-ojb/src/test/org/apache/ojb/broker/metadata/auto AutoBuildDb.java
Date Sun, 01 Dec 2002 11:49:02 GMT
thma        2002/12/01 03:49:02

  Modified:    src/test/org/apache/ojb/broker/metadata/auto
                        AutoBuildDb.java
  Log:
  remove calls to deprecated API
  
  Revision  Changes    Path
  1.5       +4 -1      jakarta-ojb/src/test/org/apache/ojb/broker/metadata/auto/AutoBuildDb.java
  
  Index: AutoBuildDb.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/test/org/apache/ojb/broker/metadata/auto/AutoBuildDb.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AutoBuildDb.java	8 Nov 2002 14:01:28 -0000	1.4
  +++ AutoBuildDb.java	1 Dec 2002 11:49:02 -0000	1.5
  @@ -7,6 +7,8 @@
    */
   package org.apache.ojb.broker.metadata.auto;
   
  +import java.sql.Connection;
  +
   import org.apache.ojb.broker.PersistenceBrokerFactory;
   import org.apache.ojb.broker.singlevm.PersistenceBrokerImpl;
   
  @@ -16,7 +18,8 @@
   		try {
   			PersistenceBrokerImpl broker = (PersistenceBrokerImpl)PersistenceBrokerFactory.defaultPersistenceBroker();
   			//broker.getDescriptorRepository().printDescriptorTable();
  -			AutoCreatorDb.autoCreate(broker.getDescriptorRepository(), broker);
  +			Connection conn = broker.getConnectionManager().getConnection();
  +			AutoCreatorDb.autoCreate(broker.getDescriptorRepository(), conn);
   		}
   		catch (Exception e) {
   			e.printStackTrace();
  
  
  

Mime
View raw message