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 InterfaceArticle.java ArticleProxy.java AbstractProductGroup.java
Date Sat, 28 Jun 2003 16:04:39 GMT
brj         2003/06/28 09:04:39

  Modified:    src/test/org/apache/ojb/broker InterfaceArticle.java
                        ArticleProxy.java AbstractProductGroup.java
  Log:
  connect Productgroup when adding Article
  
  Revision  Changes    Path
  1.2       +2 -0      db-ojb/src/test/org/apache/ojb/broker/InterfaceArticle.java
  
  Index: InterfaceArticle.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/InterfaceArticle.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InterfaceArticle.java	20 Jun 2002 17:07:50 -0000	1.1
  +++ InterfaceArticle.java	28 Jun 2003 16:04:39 -0000	1.2
  @@ -13,6 +13,8 @@
   
       public InterfaceProductGroup getProductGroup();
   
  +    public void setProductGroup(InterfaceProductGroup pg);
  +
       public double getStockValue();
   
       public void setArticleId(int newArticleId);
  
  
  
  1.4       +8 -1      db-ojb/src/test/org/apache/ojb/broker/ArticleProxy.java
  
  Index: ArticleProxy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ArticleProxy.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ArticleProxy.java	8 Apr 2003 20:19:27 -0000	1.3
  +++ ArticleProxy.java	28 Jun 2003 16:04:39 -0000	1.4
  @@ -1,7 +1,6 @@
   package org.apache.ojb.broker;
   
   
  -import org.apache.ojb.broker.VirtualProxy;
   
   //#ifdef JDK13
   import java.lang.reflect.InvocationHandler;
  @@ -18,6 +17,14 @@
    */
   public class ArticleProxy extends VirtualProxy implements InterfaceArticle
   {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.InterfaceArticle#setProductGroup(org.apache.ojb.broker.InterfaceProductGroup)
  +     */
  +    public void setProductGroup(InterfaceProductGroup pg)
  +    {
  +        realSubject().setProductGroup(pg);
  +    }
  +
       public ArticleProxy()
       {
       }
  
  
  
  1.2       +1 -0      db-ojb/src/test/org/apache/ojb/broker/AbstractProductGroup.java
  
  Index: AbstractProductGroup.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AbstractProductGroup.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractProductGroup.java	8 Apr 2003 16:24:02 -0000	1.1
  +++ AbstractProductGroup.java	28 Jun 2003 16:04:39 -0000	1.2
  @@ -15,6 +15,7 @@
           {
               allArticlesInGroup = new Vector();
           }
  +        article.setProductGroup(this);
           allArticlesInGroup.add(article);
       }
   
  
  
  

Mime
View raw message