KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > D


1 //$Id: D.java,v 1.1 2004/09/26 05:18:25 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 public class D {
5     private Long JavaDoc id;
6     private float amount;
7     private A reverse;
8     public A inverse;
9     
10     public D() {
11         // try to induce an infinite loop in the lazy-loading machinery
12
setAmount(100.0f);
13         getAmount();
14     }
15     /**
16      * Returns the amount.
17      * @return float
18      */

19     public float getAmount() {
20         return amount;
21     }
22     
23     /**
24      * Returns the id.
25      * @return long
26      */

27     public Long JavaDoc getId() {
28         return id;
29     }
30     
31     /**
32      * Sets the amount.
33      * @param amount The amount to set
34      */

35     public void setAmount(float amount) {
36         this.amount = amount;
37     }
38     
39     /**
40      * Sets the id.
41      * @param id The id to set
42      */

43     public void setId(Long JavaDoc id) {
44         this.id = id;
45     }
46     
47     public A getReverse() {
48         return reverse;
49     }
50
51     public void setReverse(A a) {
52         reverse = a;
53     }
54
55 }
56
57
58
59
60
61
62
Popular Tags