OSDN Git Service

add jsp-api
[spiga-app/vaadin.git] / src / main / java / net / korabo / app / vaadin01 / ent / Contact.java
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package net.korabo.app.vaadin01.ent;
7
8 import net.korabo.app.vaadin01.KBaseEntity;
9 import com.orientechnologies.orient.core.id.ORID;
10 import java.io.Serializable;
11 import java.util.Date;
12 import javax.persistence.Id;
13 import javax.persistence.Version;
14 import net.korabo.lib.beans.InstanceUtil;
15
16 /**
17  *
18  * @author cintake
19  */
20 public class Contact extends KBaseEntity implements Serializable, Cloneable {
21
22
23     private String firstName = "";
24     private String lastName = "";
25     private String phone = "";
26     private String email = "";
27     private Date birthDate;
28
29
30
31     public String getFirstName() {
32         return firstName;
33     }
34
35     public void setFirstName(String firstName) {
36         this.firstName = firstName;
37     }
38
39     public String getLastName() {
40         return lastName;
41     }
42
43     public void setLastName(String lastName) {
44         this.lastName = lastName;
45     }
46
47     public String getPhone() {
48         return phone;
49     }
50
51     public void setPhone(String phone) {
52         this.phone = phone;
53     }
54
55     public String getEmail() {
56         return email;
57     }
58
59     public void setEmail(String email) {
60         this.email = email;
61     }
62
63     public Date getBirthDate() {
64         return birthDate;
65     }
66
67     public void setBirthDate(Date birthDate) {
68         this.birthDate = birthDate;
69     }
70
71     @Override
72     public Contact clone() throws CloneNotSupportedException {
73         try {
74             return (Contact) InstanceUtil.dupObj(this);
75         } catch (Exception ex) {
76             throw new CloneNotSupportedException();
77         }
78     }
79
80     @Override
81     public String toString() {
82         return "Contact{" + "id=" + id + ", firstName=" + firstName
83                 + ", lastName=" + lastName + ", phone=" + phone + ", email="
84                 + email + ", birthDate=" + birthDate + '}';
85     }
86
87 }
88  
89