db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker Article.java ArticleWithReferenceProxy.java AbstractCdArticle.java AbstractArticle.java
Date Sun, 18 May 2003 10:10:44 GMT
thma        2003/05/18 03:10:44

  Modified:    src/test/org/apache/ojb/broker Article.java
                        ArticleWithReferenceProxy.java
                        AbstractCdArticle.java AbstractArticle.java
  Log:
  added some ojb xdoclet comments to demonstrate the xdoclect features. More to come!
  
  Revision  Changes    Path
  1.4       +6 -0      db-ojb/src/test/org/apache/ojb/broker/Article.java
  
  Index: Article.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/Article.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Article.java	26 Jan 2003 12:30:50 -0000	1.3
  +++ Article.java	18 May 2003 10:10:44 -0000	1.4
  @@ -1,5 +1,11 @@
   package org.apache.ojb.broker;
   
  +
  +/**
  + * @ojb.class table="Artikel"
  + *            proxy="dynamic"
  + *            include-inherited="true"
  + */
   public class Article extends AbstractArticle implements InterfaceArticle, java.io.Serializable
   {
   	protected Article()
  
  
  
  1.2       +6 -0      db-ojb/src/test/org/apache/ojb/broker/ArticleWithReferenceProxy.java
  
  Index: ArticleWithReferenceProxy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ArticleWithReferenceProxy.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ArticleWithReferenceProxy.java	20 Jun 2002 17:07:50 -0000	1.1
  +++ ArticleWithReferenceProxy.java	18 May 2003 10:10:44 -0000	1.2
  @@ -1,5 +1,11 @@
   package org.apache.ojb.broker;
   
  +/**
  + * @ojb.class table="Artikel"
  + * @ojb.modify-inherited name="productGroup"
  + *                       proxy="true"
  + *                       auto-update="true"
  + */
   public class ArticleWithReferenceProxy extends Article
   {
   
  
  
  
  1.2       +1 -0      db-ojb/src/test/org/apache/ojb/broker/AbstractCdArticle.java
  
  Index: AbstractCdArticle.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AbstractCdArticle.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractCdArticle.java	21 Sep 2002 17:24:11 -0000	1.1
  +++ AbstractCdArticle.java	18 May 2003 10:10:44 -0000	1.2
  @@ -1,5 +1,6 @@
   package org.apache.ojb.broker;
   
  +
   public abstract class AbstractCdArticle extends Article implements java.io.Serializable
   {
       /** record label*/
  
  
  
  1.4       +15 -1     db-ojb/src/test/org/apache/ojb/broker/AbstractArticle.java
  
  Index: AbstractArticle.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AbstractArticle.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractArticle.java	29 Apr 2003 15:43:26 -0000	1.3
  +++ AbstractArticle.java	18 May 2003 10:10:44 -0000	1.4
  @@ -1,5 +1,8 @@
   package org.apache.ojb.broker;
   
  +/**
  + * @ojb.class generate-table-info="false"
  + */
   public abstract class AbstractArticle implements InterfaceArticle, java.io.Serializable
   {
   
  @@ -24,7 +27,18 @@
       protected int articleId;
       /** maps to db-column Artikelname;CHAR*/
       protected String articleName;
  -    /** maps to db-column Auslaufartikel;SMALL INT*/
  +
  +    /**
  +     * maps to db-column Auslaufartikel;SMALL INT
  +     * @ojb.field column="Auslaufartikel"
  +     *            jdbc-type="INTEGER"
  +     *            conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion"
  +     *            id="10"
  +     * @ojb.attribute attribute-name="color"
  +     *                attribute-value="green"
  +     * @ojb.attribute attribute-name="size"
  +     *                attribute-value="small"
  +     */
       protected boolean isSelloutArticle;
       /** maps to db-column Mindestbestand;INT*/
       protected int minimumStock;
  
  
  

Mime
View raw message