SHARE
TWEET

Untitled

a guest Jul 15th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 com.intercam.hibernate.model;
  7.  
  8. import java.io.Serializable;
  9. import javax.persistence.Column;
  10. import javax.persistence.Entity;
  11. import javax.persistence.GeneratedValue;
  12. import static javax.persistence.GenerationType.IDENTITY;
  13. import javax.persistence.Id;
  14. import javax.persistence.Table;
  15.  
  16. /**
  17.  *
  18.  * @author Dell E6530
  19.  */
  20. @Entity
  21. @Table(name="login")
  22. public class Login implements Serializable {
  23.    
  24.     @Id
  25.     @GeneratedValue(strategy = IDENTITY)
  26.     private int idLogin;
  27.     @Column
  28.     private String password;
  29.     @Column
  30.     private String nombre;
  31.     @Column
  32.     private String apaterno;
  33.     @Column
  34.     private String amaterno;
  35.  
  36.     public int getIdLogin() {
  37.         return idLogin;
  38.     }
  39.  
  40.     public void setIdLogin(int idLogin) {
  41.         this.idLogin = idLogin;
  42.     }
  43.  
  44.     public String getPassword() {
  45.         return password;
  46.     }
  47.  
  48.     public void setPassword(String password) {
  49.         this.password = password;
  50.     }
  51.  
  52.     public String getNombre() {
  53.         return nombre;
  54.     }
  55.  
  56.     public void setNombre(String nombre) {
  57.         this.nombre = nombre;
  58.     }
  59.  
  60.     public String getApaterno() {
  61.         return apaterno;
  62.     }
  63.  
  64.     public void setApaterno(String apaterno) {
  65.         this.apaterno = apaterno;
  66.     }
  67.  
  68.     public String getAmaterno() {
  69.         return amaterno;
  70.     }
  71.  
  72.     public void setAmaterno(String amaterno) {
  73.         this.amaterno = amaterno;
  74.     }
  75.    
  76.    
  77. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top