Blame view

PFE06/src/main/java/com/PFE/ServerManager/Customer.java 1.02 KB
e1305e8c   sfeutrie   projet Spring boo...
1
2
3
4
5
6
7
8
9
10
11
12
  package com.PFE.ServerManager;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  import javax.persistence.Id;
  import javax.persistence.Table;
  
  @Entity // This tells Hibernate to make a table out of this class
  @Table(name = "Customer") // DON'T USE "User" because it is a reserved name in PostgreSQL
  public class Customer{
e743b1b9   Antoine Duquenoy   Ajout d'un utilis...
13
  
e1305e8c   sfeutrie   projet Spring boo...
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
      @Id
      @GeneratedValue(strategy=GenerationType.AUTO)
      private Integer id;
  
      @Column(name = "pseudo")
      private String pseudo;
  
      @Column(name = "password")
      private String password;
  
      public Integer getId() {
          return id;
      }
  
      public String getPseudo() {
          return pseudo;
      }
  
      public String getPassword() {
          return password;
      }
  
      public void setId(Integer id) {
          this.id = id;
      }
  
      public void setPseudo(String pseudo) {
          this.pseudo = pseudo;
      }
  
      public void setPassword(String password) {
          this.password = password;
      }
  
e1305e8c   sfeutrie   projet Spring boo...
48
  }