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 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;
20 public class Contact extends KBaseEntity implements Serializable, Cloneable {
23 private String firstName = "";
24 private String lastName = "";
25 private String phone = "";
26 private String email = "";
27 private Date birthDate;
31 public String getFirstName() {
35 public void setFirstName(String firstName) {
36 this.firstName = firstName;
39 public String getLastName() {
43 public void setLastName(String lastName) {
44 this.lastName = lastName;
47 public String getPhone() {
51 public void setPhone(String phone) {
55 public String getEmail() {
59 public void setEmail(String email) {
63 public Date getBirthDate() {
67 public void setBirthDate(Date birthDate) {
68 this.birthDate = birthDate;
72 public Contact clone() throws CloneNotSupportedException {
74 return (Contact) InstanceUtil.dupObj(this);
75 } catch (Exception ex) {
76 throw new CloneNotSupportedException();
81 public String toString() {
82 return "Contact{" + "id=" + id + ", firstName=" + firstName
83 + ", lastName=" + lastName + ", phone=" + phone + ", email="
84 + email + ", birthDate=" + birthDate + '}';