KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > ejb > jdo > Paycheck


1 package test.ejb.jdo;
2
3 import java.util.Date JavaDoc;
4
5 /**
6  * A simple test class to test for generation of Castor's mapping.xml. Tests that classes that
7  * this class depends on are listed before this class in mapping.xml - in this case, Staff
8  * would be listed after paycheck (alphabetical), but the depends tag changes that.
9  *
10  * @castor.class
11  * id="ref"
12  * table="paycheck"
13  * depends="test.ejb.jdo.Staff"
14  * @author Dmitri Colebatch (dim@bigpond.net.au)
15  */

16 public class Paycheck
17 {
18     private String JavaDoc ref;
19     private double amount;
20     private Date JavaDoc date;
21
22     /**
23      * @castor.field
24      */

25     public String JavaDoc getRef()
26     {
27         return ref;
28     }
29
30     public void setRef(String JavaDoc ref)
31     {
32         this.ref = ref;
33     }
34
35     /**
36      * @castor.field
37      */

38     public double getAmount()
39     {
40         return amount;
41     }
42
43     public void setAmount(double amount)
44     {
45         this.amount = amount;
46     }
47
48     /**
49      * @castor.field
50      */

51     public Date JavaDoc getDate()
52     {
53         return date;
54     }
55
56     public void setDate(Date JavaDoc date)
57     {
58         this.date = date;
59     }
60 }
61
Popular Tags