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 java.io.Serializable;
10 import javax.persistence.Id;
11 import net.korabo.lib.beans.InstanceUtil;
17 public class Contact implements Serializable, Cloneable {
21 private String firstName = "";
22 private String lastName = "";
23 private String phone = "";
24 private String email = "";
25 private Date birthDate;
31 public void setId(Long id) {
35 public String getFirstName() {
39 public void setFirstName(String firstName) {
40 this.firstName = firstName;
43 public String getLastName() {
47 public void setLastName(String lastName) {
48 this.lastName = lastName;
51 public String getPhone() {
55 public void setPhone(String phone) {
59 public String getEmail() {
63 public void setEmail(String email) {
67 public Date getBirthDate() {
71 public void setBirthDate(Date birthDate) {
72 this.birthDate = birthDate;
76 public Contact clone() throws CloneNotSupportedException {
78 return (Contact) InstanceUtil.dupObj(this);
79 } catch (Exception ex) {
80 throw new CloneNotSupportedException();
85 public String toString() {
86 return "Contact{" + "id=" + id + ", firstName=" + firstName
87 + ", lastName=" + lastName + ", phone=" + phone + ", email="
88 + email + ", birthDate=" + birthDate + '}';