1 package org.apache.geronimo.samples.bank.ejb;
2
3 import java.io.Serializable;
4 import javax.persistence.Entity;
5 import javax.persistence.Id;
6 import javax.persistence.Table;
7
8 @Entity
9 @Table(name = "account")
10 public class Account implements Serializable {
11 private String accountNumber;
12 private String accountType;
13 private double balance;
14 private String customerId;
15
16 public Account() {
17
18 }
19
20 public Account(String account_number, String account_type, double balance, String customerId) {
21 this.accountNumber = account_number;
22 this.accountType = account_type;
23 this.balance = balance;
24 this.customerId = customerId;
25 }
26
27 @Id
28 public String getAccountNumber() {
29 return this.accountNumber;
30 }
31
32 public void setAccountNumber(String accountNumber) {
33 this.accountNumber = accountNumber;
34 }
35
36 public String getAccountType() {
37 return this.accountType;
38 }
39
40 public void setAccountType(String accountType) {
41 this.accountType = accountType;
42 }
43
44 public double getBalance() {
45 return this.balance;
46 }
47
48 public void setBalance(double balance) {
49 this.balance = balance;
50 }
51
52 public String getCustomerId() {
53 return this.customerId;
54 }
55
56 public void setCustomerId(String customerId) {
57 this.customerId = customerId;
58 }
59 }