View Javadoc

1   package com.service.customer.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 fullName;
13      private String emailAddress;
14      private String interests;
15  
16      public Customer() {
17  
18      }
19  
20      public Customer(String customerId, String fullName, String emailAddress,
21                      String interests) {
22          this.customerId = customerId;
23          this.fullName = fullName;
24          this.emailAddress = emailAddress;
25          this.interests = interests;
26      }
27  
28      @Id
29      public String getCustomerId() {
30          return customerId;
31      }
32  
33      public String getFullName() {
34          return fullName;
35      }
36  
37      public String getEmailAddress() {
38          return emailAddress;
39      }
40  
41      public String getInterests() {
42          return interests;
43      }
44  
45      public void setCustomerId(String customerId) {
46          this.customerId = customerId;
47      }
48  
49      public void setFullName(String fullName) {
50          this.fullName = fullName;
51      }
52  
53      public void setEmailAddress(String emailAddress) {
54          this.emailAddress = emailAddress;
55      }
56  
57      public void setInterests(String interests) {
58          this.interests = interests;
59      }
60  } // end Customer