1 package org.apache.geronimo.samples.bank.ejb;
2
3 import java.io.Serializable;
4 import javax.persistence.Id;
5 import javax.persistence.Table;
6 import javax.persistence.Entity;
7
8 @Entity
9 @Table(name = "ExchangeRate")
10 public class ExchangeRate implements Serializable {
11 private String rateId;
12 private String currency;
13 private double rate;
14
15 public ExchangeRate() {
16
17 }
18
19 public ExchangeRate(String rateId, String currency, double rate) {
20 this.rateId = rateId;
21 this.currency = currency;
22 this.rate = rate;
23 }
24
25 @Id
26 public String getRateId() {
27 return this.rateId;
28 }
29
30 public void setRateId(String rateId) {
31 this.rateId = rateId;
32 }
33
34 public String getCurrency() {
35 return this.currency;
36 }
37
38 public void setCurrency(String currency) {
39 this.currency = currency;
40 }
41
42 public double getRate() {
43 return this.rate;
44 }
45
46 public void setRate(double rate) {
47 this.rate = rate;
48 }
49 }