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/broker AutomaticForeignKeys.java
Date Sat, 28 Jun 2003 15:59:17 GMT
brj         2003/06/28 08:59:17

  Modified:    src/test/org/apache/ojb/broker AutomaticForeignKeys.java
  Log:
  provide an Productgroup for Article
  
  Revision  Changes    Path
  1.6       +10 -2     db-ojb/src/test/org/apache/ojb/broker/AutomaticForeignKeys.java
  
  Index: AutomaticForeignKeys.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AutomaticForeignKeys.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AutomaticForeignKeys.java	2 Apr 2003 20:24:17 -0000	1.5
  +++ AutomaticForeignKeys.java	28 Jun 2003 15:59:17 -0000	1.6
  @@ -90,17 +90,25 @@
   	{
   		try
   		{
  +            ProductGroup pg = new ProductGroup();
  +            pg.setName("O/R mapping tools");
  +
   			Article art1 = new Article();
   			art1.setArticleName("TOPLink");
  +            art1.setProductGroup(pg);
  +
   			Article art2 = new Article();
   			art2.setArticleName("OJB");
  +            art2.setProductGroup(pg);
  +
   			Article art3 = new Article();
   			art3.setArticleName("CASTOR");
  -			ProductGroup pg = new ProductGroup();
  -			pg.setName("O/R mapping tools");
  +            art3.setProductGroup(pg);
  +
   			pg.add(art1);
   			pg.add(art2);
   			pg.add(art3);
  +
   			Identity pgOID = new Identity(pg, broker);
   			broker.store(pg);
   			broker.clearCache();
  
  
  

Mime
View raw message