You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2003/02/01 16:32:44 UTC

cvs commit: jakarta-ojb/src/test/org/apache/ojb/odmg OneToOneTest.java

brj         2003/02/01 07:32:44

  Modified:    src/test/org/apache/ojb/odmg OneToOneTest.java
  Log:
  access static in a static way
  
  Revision  Changes    Path
  1.8       +4 -4      jakarta-ojb/src/test/org/apache/ojb/odmg/OneToOneTest.java
  
  Index: OneToOneTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/test/org/apache/ojb/odmg/OneToOneTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- OneToOneTest.java	9 Jan 2003 17:25:19 -0000	1.7
  +++ OneToOneTest.java	1 Feb 2003 15:32:44 -0000	1.8
  @@ -79,8 +79,8 @@
       {
           org.odmg.Transaction tx = odmg.newTransaction();
           tx.begin();
  -        tx.lock(a, tx.WRITE);
  -        tx.lock(b, tx.WRITE);
  +        tx.lock(a, Transaction.WRITE);
  +        tx.lock(b, Transaction.WRITE);
           tx.commit();
   
           assertTrue(a.getOid() != null);
  @@ -109,7 +109,7 @@
   
               Transaction tx = odmg.newTransaction();
               tx.begin();
  -            tx.lock(b, tx.WRITE);
  +            tx.lock(b, Transaction.WRITE);
               tx.commit();
               String bOid = b.getOid();
   
  @@ -130,7 +130,7 @@
   
               TestClassAWithBProxy a = new TestClassAWithBProxy();
               a.setBProxy(bI);
  -            tx.lock(a, tx.WRITE);
  +            tx.lock(a, Transaction.WRITE);
               tx.commit();
   
               //on commit the foreign key in "a" should have been set to