Ignore:
Timestamp:
02/07/23 13:48:25 (22 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
fc448f5
Parents:
f7b0906
Message:

changes for login (not working)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/model/Customer.java

    rf7b0906 rd7f5da9  
    3434
    3535    @Override
     36    public boolean equals(Object o) {
     37        if (this == o) return true;
     38        if (o == null || getClass() != o.getClass()) return false;
     39        Customer customer = (Customer) o;
     40        return id_user!=null && Objects.equals(id_user,customer.id_user);
     41    }
     42
     43    @Override
     44    public int hashCode() {
     45        return Objects.hash();
     46    }
     47
     48    @Override
    3649    public Collection<? extends GrantedAuthority> getAuthorities() {
    3750        return Collections.singletonList(Role.ROLE_USER);
Note: See TracChangeset for help on using the changeset viewer.