×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Maduka Jayawardana
Added: Sep 14, 2015 8:31 AM
Views: 5
Tags: no tags
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties. To change this
  3.  * template file, choose Tools | Templates and open the template in the editor.
  4.  */
  5. package com.schwing.pms.core.models.entities;
  6.  
  7.  
  8. import javax.persistence.Column;
  9. import javax.persistence.GenerationType;
  10.  
  11. import javax.persistence.Entity;
  12. import javax.persistence.GeneratedValue;
  13. import javax.persistence.Id;
  14. import javax.persistence.NamedQueries;
  15. import javax.persistence.NamedQuery;
  16. import javax.persistence.Table;
  17.  
  18. /**
  19.  *
  20.  * @author Maduka
  21.  */
  22. @Table(name = "Schwing_pump_job_workers")
  23. @NamedQueries({
  24.     @NamedQuery(name = "SchwingPumpJobWorkers.FindByJobNumber", query = "SELECT c FROM SchwingPumpJobWorkers c WHERE c.job_number = :jobNumber"),
  25.     @NamedQuery(name = "SchwingPumpJobWorkers.FindByWorkerID", query = "SELECT c FROM SchwingPumpJobWorkers c WHERE c.worker_id = :workerid")})
  26.    
  27. public class SchwingPumpJobWorkers extends Model {
  28.  
  29.   @Id
  30.   @GeneratedValue(strategy = GenerationType.IDENTITY)
  31.   @Column(name = "id", unique = true, nullable = false, precision = 15, scale = 0)
  32.   private Long id;
  33.  
  34.   private Long job_number;
  35.  
  36.   private Long worker_id;
  37.  
  38.   private String worker_name;
  39.  
  40.   private String worker_alais;
  41.  
  42.   private String worker_nid;
  43.  
  44.   /**
  45.    * @return the id
  46.    */
  47.   public Long getId() {
  48.    
  49.     return id;
  50.   }
  51.  
  52.   /**
  53.    * @param id the id to set
  54.    */
  55.   public void setId(Long id) {
  56.    
  57.     this.id = id;
  58.   }
  59.  
  60.   /**
  61.    * @return the job_number
  62.    */
  63.   public Long getJob_number() {
  64.    
  65.     return job_number;
  66.   }
  67.  
  68.   /**
  69.    * @param job_number the job_number to set
  70.    */
  71.   public void setJob_number(Long job_number) {
  72.    
  73.     this.job_number = job_number;
  74.   }
  75.  
  76.   /**
  77.    * @return the worker_id
  78.    */
  79.   public Long getWorker_id() {
  80.    
  81.     return worker_id;
  82.   }
  83.  
  84.   /**
  85.    * @param worker_id the worker_id to set
  86.    */
  87.   public void setWorker_id(Long worker_id) {
  88.    
  89.     this.worker_id = worker_id;
  90.   }
  91.  
  92.   /**
  93.    * @return the worker_name
  94.    */
  95.   public String getWorker_name() {
  96.    
  97.     return worker_name;
  98.   }
  99.  
  100.   /**
  101.    * @param worker_name the worker_name to set
  102.    */
  103.   public void setWorker_name(String worker_name) {
  104.    
  105.     this.worker_name = worker_name;
  106.   }
  107.  
  108.   /**
  109.    * @return the worker_alais
  110.    */
  111.   public String getWorker_alais() {
  112.    
  113.     return worker_alais;
  114.   }
  115.  
  116.   /**
  117.    * @param worker_alais the worker_alais to set
  118.    */
  119.   public void setWorker_alais(String worker_alais) {
  120.    
  121.     this.worker_alais = worker_alais;
  122.   }
  123.  
  124.   /**
  125.    * @return the worker_nid
  126.    */
  127.   public String getWorker_nid() {
  128.    
  129.     return worker_nid;
  130.   }
  131.  
  132.   /**
  133.    * @param worker_nid the worker_nid to set
  134.    */
  135.   public void setWorker_nid(String worker_nid) {
  136.    
  137.     this.worker_nid = worker_nid;
  138.   }
  139.  
  140.   /* (non-Javadoc)
  141.    * @see java.lang.Object#toString()
  142.    */
  143.   @Override
  144.   public String toString() {
  145.    
  146.     return "SchwingPumpJobWorkers [id=" + id + ", job_number=" + job_number + ", worker_id=" + worker_id
  147.         + ", worker_name=" + worker_name + ", worker_alais=" + worker_alais + ", worker_nid=" + worker_nid + "]";
  148.   }
  149.  
  150.  
  151. }
  152.