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/java/org/apache/ojb/dirty ObjectRegistrationListener.java
Date Sun, 15 Aug 2004 13:13:09 GMT
brj         2004/08/15 06:13:09

  Modified:    src/test/org/apache/ojb/dirty DirtyBrokerTest.java
               src/java/org/apache/ojb/dirty
                        ObjectRegistrationListener.java
  Log:
  undo latest private changes
  
  Revision  Changes    Path
  1.4       +0 -34     db-ojb/src/test/org/apache/ojb/dirty/DirtyBrokerTest.java
  
  Index: DirtyBrokerTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/dirty/DirtyBrokerTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DirtyBrokerTest.java	15 Aug 2004 12:42:27 -0000	1.3
  +++ DirtyBrokerTest.java	15 Aug 2004 13:13:08 -0000	1.4
  @@ -158,39 +158,5 @@
           assertEquals(address.getCity(), desc.getAddress().getCity());
   
       }
  -    
  -    public void testStatementReordering1()
  -    {
  -        broker.beginTransaction();
  -        Person person = new Person();
  -        person.setFirstname("Brian");
  -
  -        Address mainAddress = new Address("USA", "Wilmington-Main", "Wombat Court");
  -        person.setMainAddress(mainAddress);
  -
  -        broker.store(person);
  -        broker.commitTransaction();
  -
  -        broker.clearCache();
  -
  -        broker.beginTransaction();
  -        person = (Person) broker.getObjectByIdentity(broker.serviceIdentity().buildIdentity(person));
  -
  -        Address address = new Address("USA", "Wilmington", "Wombat Court");
  -        // should be disabled to have valid test -- broker.store(address);
  -        person.addOtherAddress("Store", address);
  -        broker.commitTransaction();
  -
  -        broker.clearCache();
  -
  -        person = (Person) broker.getObjectByIdentity(broker.serviceIdentity().buildIdentity(person));
  -        Collection others = person.getOtherAddresses();
  -        assertNotNull(others);
  -        assertEquals(1, others.size());
  -        AddressDesc desc = (AddressDesc) others.iterator().next();
  -        assertNotNull(desc);
  -        assertEquals(address.getCity(), desc.getAddress().getCity());
  -
  -    }
   
   }
  
  
  
  1.3       +0 -2      db-ojb/src/java/org/apache/ojb/dirty/ObjectRegistrationListener.java
  
  Index: ObjectRegistrationListener.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/dirty/ObjectRegistrationListener.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ObjectRegistrationListener.java	15 Aug 2004 12:42:29 -0000	1.2
  +++ ObjectRegistrationListener.java	15 Aug 2004 13:13:09 -0000	1.3
  @@ -29,7 +29,6 @@
   
       public void beforeInsert(PBLifeCycleEvent event) throws PersistenceBrokerException
       {
  -        System.out.println("beforeInsert: " + event);
       }
   
       public void afterInsert(PBLifeCycleEvent event) throws PersistenceBrokerException
  @@ -38,7 +37,6 @@
   
       public void beforeUpdate(PBLifeCycleEvent event) throws PersistenceBrokerException
       {
  -        System.out.println("beforeUpdate: " + event);
       }
   
       public void afterUpdate(PBLifeCycleEvent event) throws PersistenceBrokerException
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message