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.
6 package net.korabo.app.vaadin01.ent;
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;
19 public class Contact extends KBaseEntity implements Serializable, Cloneable {
22 private String firstName = "";
23 private String lastName = "";
24 private String phone = "";
25 private String email = "";
26 private Date birthDate;
30 public String getFirstName() {
34 public void setFirstName(String firstName) {
35 this.firstName = firstName;
38 public String getLastName() {
42 public void setLastName(String lastName) {
43 this.lastName = lastName;
46 public String getPhone() {
50 public void setPhone(String phone) {
54 public String getEmail() {
58 public void setEmail(String email) {
62 public Date getBirthDate() {
66 public void setBirthDate(Date birthDate) {
67 this.birthDate = birthDate;
71 public Contact clone() throws CloneNotSupportedException {
73 return (Contact) InstanceUtil.dupObj(this);
74 } catch (Exception ex) {
75 throw new CloneNotSupportedException();
80 public String toString() {
81 return "Contact{" + "id=" + id + ", firstName=" + firstName
82 + ", lastName=" + lastName + ", phone=" + phone + ", email="
83 + email + ", birthDate=" + birthDate + '}';