db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/odmg DMapTest.java
Date Thu, 06 Feb 2003 21:22:05 GMT
brj         2003/02/06 13:22:05

  Modified:    src/test/org/apache/ojb/odmg DMapTest.java
  Log:
  use cast HasBroker
  
  Revision  Changes    Path
  1.10      +2 -2      db-ojb/src/test/org/apache/ojb/odmg/DMapTest.java
  
  Index: DMapTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/DMapTest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DMapTest.java	5 Feb 2003 20:04:40 -0000	1.9
  +++ DMapTest.java	6 Feb 2003 21:22:05 -0000	1.10
  @@ -40,7 +40,7 @@
       {
   
           Article a = new Article();
  -        PersistenceBroker broker = ((TransactionImpl) odmg.currentTransaction()).getBroker();
  +        PersistenceBroker broker = ((HasBroker) odmg.currentTransaction()).getBroker();
           a.setArticleId(broker.serviceSequenceManager().getUniqueId(
                   broker.getClassDescriptor(Article.class).getFieldDescriptorByName("articleId")));
           a.setArticleName("New Funny Article " + a.getArticleId());
  @@ -101,7 +101,7 @@
           Transaction tx = odmg.newTransaction();
           tx.begin();
           DMap map = odmg.newDMap();
  -        PersistenceBroker broker = ((TransactionImpl) tx).getBroker();
  +        PersistenceBroker broker = ((HasBroker) tx).getBroker();
           String name = null;
           try
           {
  
  
  

Mime
View raw message