OSDN Git Service

269653a927d958bfc4826566cdeec01746d3f048
[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 com.orientechnologies.orient.core.id.ORID;
9 import java.io.Serializable;
10 import java.util.Date;
11 import javax.persistence.Id;
12 import javax.persistence.Version;
13 import net.korabo.lib.beans.InstanceUtil;
14
15 /**
16  *
17  * @author cintake
18  */
19 public class Contact extends KBaseEntity implements Serializable, Cloneable {
20
21
22     private String firstName = "";
23     private String lastName = "";
24     private String phone = "";
25     private String email = "";
26     private Date birthDate;
27
28
29
30     public String getFirstName() {
31         return firstName;
32     }
33
34     public void setFirstName(String firstName) {
35         this.firstName = firstName;
36     }
37
38     public String getLastName() {
39         return lastName;
40     }
41
42     public void setLastName(String lastName) {
43         this.lastName = lastName;
44     }
45
46     public String getPhone() {
47         return phone;
48     }
49
50     public void setPhone(String phone) {
51         this.phone = phone;
52     }
53
54     public String getEmail() {
55         return email;
56     }
57
58     public void setEmail(String email) {
59         this.email = email;
60     }
61
62     public Date getBirthDate() {
63         return birthDate;
64     }
65
66     public void setBirthDate(Date birthDate) {
67         this.birthDate = birthDate;
68     }
69
70     @Override
71     public Contact clone() throws CloneNotSupportedException {
72         try {
73             return (Contact) InstanceUtil.dupObj(this);
74         } catch (Exception ex) {
75             throw new CloneNotSupportedException();
76         }
77     }
78
79     @Override
80     public String toString() {
81         return "Contact{" + "id=" + id + ", firstName=" + firstName
82                 + ", lastName=" + lastName + ", phone=" + phone + ", email="
83                 + email + ", birthDate=" + birthDate + '}';
84     }
85
86 }
87  
88