/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jpa.demo;

import java.util.Date;
import javax.persistence.*;

@Entity
public class Person {

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE)
    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    private String name;
    private String street;
    private String city;
    private String states;
    private String zip;
    @Temporal(TemporalType.DATE)
    private Date birthday;
    public String getStates() {
        return states;
    }

    public void setStates(String states) {
        this.states = states;
    }

    public Person() {
    }

    public Person( String name, String city, String street, String zip, String states) {
       
        this.name = name;
        this.states = states;
        this.city = city;
        this.street = street;
        this.zip = zip;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getZip() {
        return zip;
    }

    public void setZip(String zip) {
        this.zip = zip;
    }
   

    
}
