package entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "employee")
public class Employee 
{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Column(name = "name", columnDefinition = "TEXT", nullable = false)
    private String name;

    @Column(name = "fname", columnDefinition = "TEXT", nullable = false)
    private String fname;

    @Temporal(TemporalType.DATE)
    @Column(name = "dob", nullable = false)
    private Date dob;

    @Temporal(TemporalType.DATE)
    @Column(name = "doj", nullable = false)
    private Date doj;

    @Column(name = "address", columnDefinition = "TEXT", nullable = false)
    private String address;

    @Column(name = "mobile", length = 45, nullable = false)
    private String mobile;

    @Column(name = "center", columnDefinition = "TEXT", nullable = false)
    private String center;

    @Column(name = "uname", length = 45, nullable = false)
    private String uname;

    @Column(name = "pwd", length = 45, nullable = false)
    private String pwd;

    @Column(name = "status", length = 45)
    private String status = "active";

    @Column(name = "leave_allowed", length = 45, nullable = false)
    private String leaveAllowed = "0";

    @Column(name = "salary", length = 45, nullable = false)
    private String salary = "0";

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "entry_date", nullable = false, insertable = false, updatable = false)
    private Date entryDate;

    @Column(name = "p_address", columnDefinition = "TEXT")
    private String pAddress;

    @Column(name = "alt_contact_no", length = 45)
    private String altContactNo;

    @Column(name = "nick_name", length = 45)
    private String nickName;

    @Column(name = "email_id", length = 45)
    private String emailId;

    @Column(name = "gender", length = 45)
    private String gender;

    @Column(name = "marital_status", length = 45)
    private String maritalStatus;

    @Column(name = "blood_group", length = 45)
    private String bloodGroup;

    @Column(name = "category", length = 45)
    private String category;

    @Column(name = "religion", length = 45)
    private String religion;

    @Column(name = "department", length = 45)
    private String department;

    @Column(name = "designation", length = 45)
    private String designation;

    @Column(name = "pin_code", length = 45)
    private String pinCode;

    @Column(name = "city", length = 45)
    private String city;

    @Column(name = "pan_card", length = 45)
    private String panCard;

    @Column(name = "dl_no", length = 45)
    private String dlNo;

    @Column(name = "aadhar_card", length = 45)
    private String aadharCard;

    @Column(name = "voter_id", length = 45)
    private String voterId;

    @Column(name = "passport", length = 45)
    private String passport;

    @Column(name = "ration_card", length = 45)
    private String rationCard;

    @Column(name = "tenth", length = 45)
    private String tenth;

    @Column(name = "twelveth", length = 45)
    private String twelveth;

    @Column(name = "graduation", length = 45)
    private String graduation;

    @Column(name = "other", length = 45)
    private String other;

    @Temporal(TemporalType.DATE)
    @Column(name = "anniversary_date")
    private Date anniversaryDate;

    @Column(name = "dsacode", length = 45)
    private String dsacode;

    @Column(name = "aadhar_card_photo", length = 45)
    private String aadharCardPhoto;

    @Column(name = "voter_id_photo", length = 45)
    private String voterIdPhoto;

    @Column(name = "passport_photo", length = 45)
    private String passportPhoto;

    @Column(name = "ration_card_photo", length = 45)
    private String rationCardPhoto;

    @Column(name = "tenth_photo", length = 45)
    private String tenthPhoto;

    @Column(name = "twelveth_photo", length = 45)
    private String twelvethPhoto;

    @Column(name = "graduation_photo", length = 45)
    private String graduationPhoto;

    @Column(name = "other_photo", length = 45)
    private String otherPhoto;

    @Column(name = "pan_card_photo", length = 45)
    private String panCardPhoto;

    @Column(name = "dl_no_photo", length = 45)
    private String dlNoPhoto;

    @Column(name = "branch_id", length = 45)
    private String branchId;

    @Column(name = "entry_back_days", length = 45)
    private String entryBackDays = "2";

    @Column(name = "bank_name", length = 45)
    private String bankName;

    @Column(name = "bank_account_no", length = 45)
    private String bankAccountNo;

    @Column(name = "bank_branch", columnDefinition = "TEXT")
    private String bankBranch;

    @Column(name = "bank_ifsc", length = 45)
    private String bankIfsc;

    @Column(name = "pf_acc", length = 45)
    private String pfAcc;

    @Column(name = "uan", length = 45)
    private String uan;

    @Column(name = "cibil_check", length = 45)
    private String cibilCheck;

    @Column(name = "esic", length = 45)
    private String esic;

    @Temporal(TemporalType.DATE)
    @Column(name = "inactive_date")
    private Date inactiveDate;

    @Column(name = "inactive_description", length = 45)
    private String inactiveDescription;

    @Temporal(TemporalType.DATE)
    @Column(name = "transfer_date")
    private Date transferDate;

    
    
    public Employee() {}

    
    
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public Date getDob() {
		return dob;
	}

	public void setDob(Date dob) {
		this.dob = dob;
	}

	public Date getDoj() {
		return doj;
	}

	public void setDoj(Date doj) {
		this.doj = doj;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getCenter() {
		return center;
	}

	public void setCenter(String center) {
		this.center = center;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getLeaveAllowed() {
		return leaveAllowed;
	}

	public void setLeaveAllowed(String leaveAllowed) {
		this.leaveAllowed = leaveAllowed;
	}

	public String getSalary() {
		return salary;
	}

	public void setSalary(String salary) {
		this.salary = salary;
	}

	public Date getEntryDate() {
		return entryDate;
	}

	public void setEntryDate(Date entryDate) {
		this.entryDate = entryDate;
	}

	public String getpAddress() {
		return pAddress;
	}

	public void setpAddress(String pAddress) {
		this.pAddress = pAddress;
	}

	public String getAltContactNo() {
		return altContactNo;
	}

	public void setAltContactNo(String altContactNo) {
		this.altContactNo = altContactNo;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getEmailId() {
		return emailId;
	}

	public void setEmailId(String emailId) {
		this.emailId = emailId;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getMaritalStatus() {
		return maritalStatus;
	}

	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}

	public String getBloodGroup() {
		return bloodGroup;
	}

	public void setBloodGroup(String bloodGroup) {
		this.bloodGroup = bloodGroup;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getReligion() {
		return religion;
	}

	public void setReligion(String religion) {
		this.religion = religion;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getDesignation() {
		return designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	public String getPinCode() {
		return pinCode;
	}

	public void setPinCode(String pinCode) {
		this.pinCode = pinCode;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPanCard() {
		return panCard;
	}

	public void setPanCard(String panCard) {
		this.panCard = panCard;
	}

	public String getDlNo() {
		return dlNo;
	}

	public void setDlNo(String dlNo) {
		this.dlNo = dlNo;
	}

	public String getAadharCard() {
		return aadharCard;
	}

	public void setAadharCard(String aadharCard) {
		this.aadharCard = aadharCard;
	}

	public String getVoterId() {
		return voterId;
	}

	public void setVoterId(String voterId) {
		this.voterId = voterId;
	}

	public String getPassport() {
		return passport;
	}

	public void setPassport(String passport) {
		this.passport = passport;
	}

	public String getRationCard() {
		return rationCard;
	}

	public void setRationCard(String rationCard) {
		this.rationCard = rationCard;
	}

	public String getTenth() {
		return tenth;
	}

	public void setTenth(String tenth) {
		this.tenth = tenth;
	}

	public String getTwelveth() {
		return twelveth;
	}

	public void setTwelveth(String twelveth) {
		this.twelveth = twelveth;
	}

	public String getGraduation() {
		return graduation;
	}

	public void setGraduation(String graduation) {
		this.graduation = graduation;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public Date getAnniversaryDate() {
		return anniversaryDate;
	}

	public void setAnniversaryDate(Date anniversaryDate) {
		this.anniversaryDate = anniversaryDate;
	}

	public String getDsacode() {
		return dsacode;
	}

	public void setDsacode(String dsacode) {
		this.dsacode = dsacode;
	}

	public String getAadharCardPhoto() {
		return aadharCardPhoto;
	}

	public void setAadharCardPhoto(String aadharCardPhoto) {
		this.aadharCardPhoto = aadharCardPhoto;
	}

	public String getVoterIdPhoto() {
		return voterIdPhoto;
	}

	public void setVoterIdPhoto(String voterIdPhoto) {
		this.voterIdPhoto = voterIdPhoto;
	}

	public String getPassportPhoto() {
		return passportPhoto;
	}

	public void setPassportPhoto(String passportPhoto) {
		this.passportPhoto = passportPhoto;
	}

	public String getRationCardPhoto() {
		return rationCardPhoto;
	}

	public void setRationCardPhoto(String rationCardPhoto) {
		this.rationCardPhoto = rationCardPhoto;
	}

	public String getTenthPhoto() {
		return tenthPhoto;
	}

	public void setTenthPhoto(String tenthPhoto) {
		this.tenthPhoto = tenthPhoto;
	}

	public String getTwelvethPhoto() {
		return twelvethPhoto;
	}

	public void setTwelvethPhoto(String twelvethPhoto) {
		this.twelvethPhoto = twelvethPhoto;
	}

	public String getGraduationPhoto() {
		return graduationPhoto;
	}

	public void setGraduationPhoto(String graduationPhoto) {
		this.graduationPhoto = graduationPhoto;
	}

	public String getOtherPhoto() {
		return otherPhoto;
	}

	public void setOtherPhoto(String otherPhoto) {
		this.otherPhoto = otherPhoto;
	}

	public String getPanCardPhoto() {
		return panCardPhoto;
	}

	public void setPanCardPhoto(String panCardPhoto) {
		this.panCardPhoto = panCardPhoto;
	}

	public String getDlNoPhoto() {
		return dlNoPhoto;
	}

	public void setDlNoPhoto(String dlNoPhoto) {
		this.dlNoPhoto = dlNoPhoto;
	}

	public String getBranchId() {
		return branchId;
	}

	public void setBranchId(String branchId) {
		this.branchId = branchId;
	}

	public String getEntryBackDays() {
		return entryBackDays;
	}

	public void setEntryBackDays(String entryBackDays) {
		this.entryBackDays = entryBackDays;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankAccountNo() {
		return bankAccountNo;
	}

	public void setBankAccountNo(String bankAccountNo) {
		this.bankAccountNo = bankAccountNo;
	}

	public String getBankBranch() {
		return bankBranch;
	}

	public void setBankBranch(String bankBranch) {
		this.bankBranch = bankBranch;
	}

	public String getBankIfsc() {
		return bankIfsc;
	}

	public void setBankIfsc(String bankIfsc) {
		this.bankIfsc = bankIfsc;
	}

	public String getPfAcc() {
		return pfAcc;
	}

	public void setPfAcc(String pfAcc) {
		this.pfAcc = pfAcc;
	}

	public String getUan() {
		return uan;
	}

	public void setUan(String uan) {
		this.uan = uan;
	}

	public String getCibilCheck() {
		return cibilCheck;
	}

	public void setCibilCheck(String cibilCheck) {
		this.cibilCheck = cibilCheck;
	}

	public String getEsic() {
		return esic;
	}

	public void setEsic(String esic) {
		this.esic = esic;
	}

	public Date getInactiveDate() {
		return inactiveDate;
	}

	public void setInactiveDate(Date inactiveDate) {
		this.inactiveDate = inactiveDate;
	}

	public String getInactiveDescription() {
		return inactiveDescription;
	}

	public void setInactiveDescription(String inactiveDescription) {
		this.inactiveDescription = inactiveDescription;
	}

	public Date getTransferDate() {
		return transferDate;
	}

	public void setTransferDate(Date transferDate) {
		this.transferDate = transferDate;
	}

}