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/06/25 22:18:33 UTC

cvs commit: db-ojb/src/test/org/apache/ojb/broker ProxyExamples.java

brj         2003/06/25 13:18:33

  Modified:    src/test/org/apache/ojb/broker ProxyExamples.java
  Log:
  use ProductGroup not it's id in Article
  
  Revision  Changes    Path
  1.10      +2 -2      db-ojb/src/test/org/apache/ojb/broker/ProxyExamples.java
  
  Index: ProxyExamples.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ProxyExamples.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ProxyExamples.java	2 Jun 2003 15:18:00 -0000	1.9
  +++ ProxyExamples.java	25 Jun 2003 20:18:33 -0000	1.10
  @@ -347,7 +347,7 @@
   			broker.beginTransaction();
   
   			// Create productgroup
  -			ProductGroupWithCollectionProxy pg = new ProductGroupWithCollectionProxy();
  +            ProductGroupWithCollectionProxy pg = new ProductGroupWithCollectionProxy();
   			pg.setGroupName("TESTPRODUCTGROUP");
   			broker.store(pg);
   
  @@ -356,7 +356,7 @@
   			{
   				Article ar = new Article();
   				ar.setArticleName("ARTICLE " + j);
  -				ar.setProductGroupId(pg.getGroupId());
  +				ar.setProductGroup(pg);
   				broker.store(ar);
   			}