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 = "customer")
010    public class Customer implements Serializable {
011            private String customerId;
012            private String name;
013    
014            public Customer() {
015    
016            }
017    
018            public Customer(String customerId, String name) {
019                    this.customerId = customerId;
020                    this.name = name;
021            }
022    
023            @Id
024            public String getCustomerId() {
025                    return this.customerId;
026            }
027    
028            public void setCustomerId(String customerId) {
029                    this.customerId = customerId;
030            }
031    
032            public String getName() {
033                    return this.name;
034            }
035    
036            public void setName(String name) {
037                    this.name = name;
038            }
039    }