Ignore:
Timestamp:
01/05/23 04:11:40 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
1bd8d1e
Parents:
7d43957
Message:

Added admin view of pending roles and approve functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/model/User.java

    r7d43957 r676144b  
    2525    @Id
    2626    @GeneratedValue(strategy = GenerationType.IDENTITY)
    27     Integer ID_user;
     27    @Column(name = "ID_user")
     28    Integer id;
    2829    String username;
    2930    String email;
    30     String name_user;
     31    @Column(name = "name_user")
     32    String name;
    3133    @Column(name = "password_user")
    3234    String password;
     
    3941    public User(String username, String name, String email, String password, String number) {
    4042        this.username = username;
    41         this.name_user = name;
     43        this.name = name;
    4244        this.email = email;
    4345        this.password = password;
     
    5153        if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
    5254        User user = (User) o;
    53         return ID_user != null && Objects.equals(ID_user, user.ID_user);
     55        return id != null && Objects.equals(id, user.id);
    5456    }
    5557
Note: See TracChangeset for help on using the changeset viewer.