package tutorial.core.models.entities;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;

/**
 * 
 * @author Xavier
 */
@Entity
public class Account implements Serializable{
    @Id
    @GeneratedValue
    @Column( name="account_id" )
    private Long id;
    @Column( name="name" )
    private String name;
    @Column( name="password" )
    private String password;
    @Column( name="accountType" )
    private int accountType;
    @Temporal(javax.persistence.TemporalType.DATE)
    @Column( name="created" )
    private Date created;
    @Temporal(javax.persistence.TemporalType.DATE)
    @Column( name="activated" )
    private Date activated;
    @Temporal(javax.persistence.TemporalType.DATE)
    @Column( name="updated" )
    private Date updated;
    @Temporal(javax.persistence.TemporalType.DATE)
    @Column( name="removed" )
    private Date removed;
    
    
    @Column( name="number" )
    private String number;
    @Column( name="specialty" )
    private String specialty;
    @Column( name="age" )
    private int age;
    @Column( name="gender" )
    private String gender;
    @Column( name="province" )
    private String province;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getSpecialty() {
        return specialty;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public int getAccountType() {
        return accountType;
    }

    public void setAccountType(int accountType) {
        this.accountType = accountType;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getActivated() {
        return activated;
    }

    public void setActivated(Date activated) {
        this.activated = activated;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Date getRemoved() {
        return removed;
    }

    public void setRemoved(Date removed) {
        this.removed = removed;
    }

    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

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

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
