001    package com.service.customer.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 fullName;
013        private String emailAddress;
014        private String interests;
015    
016        public Customer() {
017    
018        }
019    
020        public Customer(String customerId, String fullName, String emailAddress,
021                        String interests) {
022            this.customerId = customerId;
023            this.fullName = fullName;
024            this.emailAddress = emailAddress;
025            this.interests = interests;
026        }
027    
028        @Id
029        public String getCustomerId() {
030            return customerId;
031        }
032    
033        public String getFullName() {
034            return fullName;
035        }
036    
037        public String getEmailAddress() {
038            return emailAddress;
039        }
040    
041        public String getInterests() {
042            return interests;
043        }
044    
045        public void setCustomerId(String customerId) {
046            this.customerId = customerId;
047        }
048    
049        public void setFullName(String fullName) {
050            this.fullName = fullName;
051        }
052    
053        public void setEmailAddress(String emailAddress) {
054            this.emailAddress = emailAddress;
055        }
056    
057        public void setInterests(String interests) {
058            this.interests = interests;
059        }
060    } // end Customer