001    package org.apache.geronimo.samples.bank.ejb;
002    
003    import java.io.Serializable;
004    import javax.persistence.Id;
005    import javax.persistence.Table;
006    import javax.persistence.Entity;
007    
008    @Entity
009    @Table(name = "ExchangeRate")
010    public class ExchangeRate implements Serializable {
011            private String rateId;
012            private String currency;
013            private double rate;
014    
015            public ExchangeRate() {
016    
017            }
018    
019            public ExchangeRate(String rateId, String currency, double rate) {
020                    this.rateId = rateId;
021                    this.currency = currency;
022                    this.rate = rate;
023            }
024    
025            @Id
026            public String getRateId() {
027                    return this.rateId;
028            }
029    
030            public void setRateId(String rateId) {
031                    this.rateId = rateId;
032            }
033    
034            public String getCurrency() {
035                    return this.currency;
036            }
037    
038            public void setCurrency(String currency) {
039                    this.currency = currency;
040            }
041    
042            public double getRate() {
043                    return this.rate;
044            }
045    
046            public void setRate(double rate) {
047                    this.rate = rate;
048            }
049    }