Advertisement
Guest User

Ligacao.java

a guest
Jun 13th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.76 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package linx;
  7.  
  8. import java.util.Date;
  9. import javax.persistence.Column;
  10. import javax.persistence.Entity;
  11. import javax.persistence.GeneratedValue;
  12. import javax.persistence.GenerationType;
  13. import javax.persistence.Id;
  14. import javax.persistence.Table;
  15.  
  16. /**
  17.  *
  18.  * @author vinicius.candido
  19.  */
  20. @Table
  21. @Entity
  22. public class Ligacao {
  23.     @Id
  24.     @GeneratedValue(strategy=GenerationType.AUTO)
  25.     @Column
  26.     private int id;
  27.    
  28.     @Column
  29.     private String ip;
  30.    
  31.     @Column
  32.     private String destino;
  33.    
  34.     @Column
  35.     private String transferencia;
  36.    
  37.     @Column
  38.     private int codigo;
  39.    
  40.     @Column
  41.     private String chamado1;
  42.    
  43.     @Column
  44.     private String chamado2;
  45.    
  46.     @Column
  47.     private Date data;
  48.    
  49.     @Column
  50.     private String nome;
  51.  
  52.     public Ligacao() {
  53.     }
  54.  
  55.     public Ligacao(int id, String ip, String destino, String transferencia, int codigo, String chamado1, String chamado2, Date data, String nome) {
  56.         this.id = id;
  57.         this.ip = ip;
  58.         this.destino = destino;
  59.         this.transferencia = transferencia;
  60.         this.codigo = codigo;
  61.         this.chamado1 = chamado1;
  62.         this.chamado2 = chamado2;
  63.         this.data = data;
  64.         this.nome = nome;
  65.     }
  66.  
  67.     public int getId() {
  68.         return id;
  69.     }
  70.  
  71.     public void setId(int id) {
  72.         this.id = id;
  73.     }
  74.  
  75.     public String getIp() {
  76.         return ip;
  77.     }
  78.  
  79.     public void setIp(String ip) {
  80.         this.ip = ip;
  81.     }
  82.  
  83.     public String getDestino() {
  84.         return destino;
  85.     }
  86.  
  87.     public void setDestino(String destino) {
  88.         this.destino = destino;
  89.     }
  90.  
  91.     public String getTransferencia() {
  92.         return transferencia;
  93.     }
  94.  
  95.     public void setTransferencia(String transferencia) {
  96.         this.transferencia = transferencia;
  97.     }
  98.  
  99.     public int getCodigo() {
  100.         return codigo;
  101.     }
  102.  
  103.     public void setCodigo(int codigo) {
  104.         this.codigo = codigo;
  105.     }
  106.  
  107.     public String getChamado1() {
  108.         return chamado1;
  109.     }
  110.  
  111.     public void setChamado1(String chamado1) {
  112.         this.chamado1 = chamado1;
  113.     }
  114.  
  115.     public String getChamado2() {
  116.         return chamado2;
  117.     }
  118.  
  119.     public void setChamado2(String chamado2) {
  120.         this.chamado2 = chamado2;
  121.     }
  122.  
  123.     public Date getData() {
  124.         return data;
  125.     }
  126.  
  127.     public void setData(Date data) {
  128.         this.data = data;
  129.     }
  130.  
  131.     public String getNome() {
  132.         return nome;
  133.     }
  134.  
  135.     public void setNome(String nome) {
  136.         this.nome = nome;
  137.     }
  138.    
  139.    
  140.    
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement