db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/performance PerfArticleImpl.java
Date Sat, 19 Feb 2005 20:34:37 GMT
arminw      2005/02/19 12:34:37

  Modified:    src/test/org/apache/ojb/performance Tag: OJB_1_0_RELEASE
                        PerfArticleImpl.java
  Log:
  add toString method
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.6.2.1   +16 -1     db-ojb/src/test/org/apache/ojb/performance/PerfArticleImpl.java
  
  Index: PerfArticleImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/performance/PerfArticleImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.6.2.1
  diff -u -r1.6 -r1.6.2.1
  --- PerfArticleImpl.java	14 Jun 2004 12:47:29 -0000	1.6
  +++ PerfArticleImpl.java	19 Feb 2005 20:34:37 -0000	1.6.2.1
  @@ -1,5 +1,7 @@
   package org.apache.ojb.performance;
   
  +import org.apache.commons.lang.builder.ToStringBuilder;
  +
   /* Copyright 2002-2004 The Apache Software Foundation
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
  @@ -48,6 +50,19 @@
           this.productGroupId = productGroupId;
       }
   
  +    public String toString()
  +    {
  +        return new ToStringBuilder(this).append("articleId", articleId)
  +                .append("articleName", articleName)
  +                .append("minimumStock", minimumStock)
  +                .append("price", price)
  +                .append("unit", unit)
  +                .append("stock", stock)
  +                .append("supplierId", supplierId)
  +                .append("productGroupId", productGroupId)
  +                .toString();
  +    }
  +
       public Long getArticleId()
       {
           return articleId;
  
  
  

---------------------------------------------------------------------
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