KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > entity > MonetaryAmount


1 //$Id: MonetaryAmount.java,v 1.1 2005/05/16 17:43:08 epbernard Exp $
2
package org.hibernate.test.annotations.entity;
3
4 import java.io.Serializable JavaDoc;
5 import java.math.BigDecimal JavaDoc;
6 import java.util.Currency JavaDoc;
7
8 /**
9  * @author Emmanuel Bernard
10  */

11 public class MonetaryAmount implements Serializable JavaDoc {
12
13     private BigDecimal JavaDoc amount;
14     private Currency JavaDoc currency;
15
16     public MonetaryAmount(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
Popular Tags