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 = "customer")
10 public class Customer implements Serializable {
11 private String customerId;
12 private String name;
13
14 public Customer() {
15
16 }
17
18 public Customer(String customerId, String name) {
19 this.customerId = customerId;
20 this.name = name;
21 }
22
23 @Id
24 public String getCustomerId() {
25 return this.customerId;
26 }
27
28 public void setCustomerId(String customerId) {
29 this.customerId = customerId;
30 }
31
32 public String getName() {
33 return this.name;
34 }
35
36 public void setName(String name) {
37 this.name = name;
38 }
39 }