001 package org.apache.geronimo.samples.bank.ejb; 002 003 import java.io.Serializable; 004 import javax.persistence.Entity; 005 import javax.persistence.Id; 006 import javax.persistence.Table; 007 008 @Entity 009 @Table(name = "account") 010 public class Account implements Serializable { 011 private String accountNumber; 012 private String accountType; 013 private double balance; 014 private String customerId; 015 016 public Account() { 017 018 } 019 020 public Account(String account_number, String account_type, double balance, String customerId) { 021 this.accountNumber = account_number; 022 this.accountType = account_type; 023 this.balance = balance; 024 this.customerId = customerId; 025 } 026 027 @Id 028 public String getAccountNumber() { 029 return this.accountNumber; 030 } 031 032 public void setAccountNumber(String accountNumber) { 033 this.accountNumber = accountNumber; 034 } 035 036 public String getAccountType() { 037 return this.accountType; 038 } 039 040 public void setAccountType(String accountType) { 041 this.accountType = accountType; 042 } 043 044 public double getBalance() { 045 return this.balance; 046 } 047 048 public void setBalance(double balance) { 049 this.balance = balance; 050 } 051 052 public String getCustomerId() { 053 return this.customerId; 054 } 055 056 public void setCustomerId(String customerId) { 057 this.customerId = customerId; 058 } 059 }