Created
March 25, 2013 10:39
-
-
Save senthilmuthiah/5236286 to your computer and use it in GitHub Desktop.
Address Book Using JPA +ZK + Spring.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package addressbook.domain; | |
import java.io.Serializable; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
@Entity | |
public class AddressBook implements Serializable { | |
/** | |
* | |
*/ | |
private static final long serialVersionUID = 1L; | |
@Id | |
@GeneratedValue(strategy=GenerationType.IDENTITY) | |
private long id; | |
private String fullName; | |
private String address1; | |
private String address2; | |
private String city; | |
private String zipCode; | |
private String state; | |
private String email; | |
private String mobile; | |
public String getFullName() { | |
return fullName; | |
} | |
public void setFullName(String fullName) { | |
this.fullName = fullName; | |
} | |
public String getAddress1() { | |
return address1; | |
} | |
public void setAddress1(String address1) { | |
this.address1 = address1; | |
} | |
public String getAddress2() { | |
return address2; | |
} | |
public void setAddress2(String address2) { | |
this.address2 = address2; | |
} | |
public String getCity() { | |
return city; | |
} | |
public void setCity(String city) { | |
this.city = city; | |
} | |
public String getZipCode() { | |
return zipCode; | |
} | |
public void setZipCode(String zipCode) { | |
this.zipCode = zipCode; | |
} | |
public String getState() { | |
return state; | |
} | |
public void setState(String state) { | |
this.state = state; | |
} | |
public String getEmail() { | |
return email; | |
} | |
public void setEmail(String email) { | |
this.email = email; | |
} | |
public String getMobile() { | |
return mobile; | |
} | |
public void setMobile(String mobile) { | |
this.mobile = mobile; | |
} | |
public long getId() { | |
return id; | |
} | |
public void setId(long id) { | |
this.id = id; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment