/*
* To change this license header, choose License Headers in Project Properties. To change this
* template file, choose Tools | Templates and open the template in the editor.
*/
package com.schwing.pms.core.models.entities;
import javax.persistence.Column;
import javax.persistence.GenerationType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
/**
*
* @author Maduka
*/
@Table(name = "Schwing_pump_job_workers")
@NamedQueries({
@NamedQuery(name = "SchwingPumpJobWorkers.FindByJobNumber", query = "SELECT c FROM SchwingPumpJobWorkers c WHERE c.job_number = :jobNumber"),
@NamedQuery(name = "SchwingPumpJobWorkers.FindByWorkerID", query = "SELECT c FROM SchwingPumpJobWorkers c WHERE c.worker_id = :workerid")})
public class SchwingPumpJobWorkers extends Model {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", unique = true, nullable = false, precision = 15, scale = 0)
/**
* @return the id
*/
return id;
}
/**
* @param id the id to set
*/
public void setId
(Long id
) {
this.id = id;
}
/**
* @return the job_number
*/
public Long getJob_number
() {
return job_number;
}
/**
* @param job_number the job_number to set
*/
public void setJob_number
(Long job_number
) {
this.job_number = job_number;
}
/**
* @return the worker_id
*/
public Long getWorker_id
() {
return worker_id;
}
/**
* @param worker_id the worker_id to set
*/
public void setWorker_id
(Long worker_id
) {
this.worker_id = worker_id;
}
/**
* @return the worker_name
*/
public String getWorker_name
() {
return worker_name;
}
/**
* @param worker_name the worker_name to set
*/
public void setWorker_name
(String worker_name
) {
this.worker_name = worker_name;
}
/**
* @return the worker_alais
*/
public String getWorker_alais
() {
return worker_alais;
}
/**
* @param worker_alais the worker_alais to set
*/
public void setWorker_alais
(String worker_alais
) {
this.worker_alais = worker_alais;
}
/**
* @return the worker_nid
*/
public String getWorker_nid
() {
return worker_nid;
}
/**
* @param worker_nid the worker_nid to set
*/
public void setWorker_nid
(String worker_nid
) {
this.worker_nid = worker_nid;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
return "SchwingPumpJobWorkers [id=" + id + ", job_number=" + job_number + ", worker_id=" + worker_id
+ ", worker_name=" + worker_name + ", worker_alais=" + worker_alais + ", worker_nid=" + worker_nid + "]";
}
}