    1   /***
    2    * JFoxSOAF, Service-Oriented Application Framework
    3    *
    4    * Copyright (C) www.huihoo.org
    5    *
    6    * Distributable under GNU LGPL For more information, please visit:
    7    * http://www.huihoo.org/jfox/jfoxsoaf
    8    */
    9
    10  package org.huihoo.jfox.soaf.services.persistence;
    11
    12  /***
    13   * JUnit test case model
    14   * {@link org.huihoo.jfox.soaf.services.persistence.Product).
    15   *
    16   * @author <a href="mailto:founder_chen@yahoo.com">Peter Cheng </a>
    17   * @version $Revision: 1.2 $ $Date: 2004/11/16 02:29:04 $
    18   * @version Revision: 1.0
    19   */
    20
    21  public class Product {
    22
    23      private String id;
    24
    25      private String name;
    26
    27      private double price;
    28
    29      private int amount;
    30
    31      public int getAmount() {
    32          return amount;
    33      }
    34
    35      public String getId() {
    36          return id;
    37      }
    38
    39      public String getName() {
    40          return name;
    41      }
    42
    43      public double getPrice() {
    44          return price;
    45      }
    46
    47      public void setAmount(int i) {
    48          amount = i;
    49      }
    50
    51      public void setId(String string) {
    52          id = string;
    53      }
    54
    55      public void setName(String string) {
    56          name = string;
    57      }
    58
    59      public void setPrice(double d) {
    60          price = d;
    61      }
    62
    63      public String toString() {
    64          return "[Product] " + name + "(" + id + ") price=" + price + " amount="
    65                  + amount;
    66      }
    67
    68  }