KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > cut > MonetoryAmount


1 //$Id: MonetoryAmount.java,v 1.1 2005/03/29 03:06:25 oneovthafew Exp $
2
package org.hibernate.test.cut;
3
4 import java.io.Serializable JavaDoc;
5 import java.math.BigDecimal JavaDoc;
6 import java.util.Currency JavaDoc;
7
8 /**
9  * @author Gavin King
10  */

11 public class MonetoryAmount implements Serializable JavaDoc {
12
13     private BigDecimal JavaDoc amount;
14     private Currency JavaDoc currency;
15     
16     public MonetoryAmount(BigDecimal JavaDoc amount, Currency JavaDoc currency) {
17         this.amount = amount;
18         this.currency = currency;
19     }
20     
21     public BigDecimal JavaDoc getAmount() {
22         return amount;
23     }
24     
25     public void setAmount(BigDecimal JavaDoc amount) {
26         this.amount = amount;
27     }
28
29     public Currency JavaDoc getCurrency() {
30         return currency;
31     }
32
33     public void setCurrency(Currency JavaDoc currency) {
34         this.currency = currency;
35     }
36
37 }
38
Popular Tags