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/Worker.java

    rf7b0906 rd7f5da9  
    1010import java.util.Collection;
    1111import java.util.Collections;
     12import java.util.Objects;
    1213
    1314@Entity
     
    3233    }
    3334
     35    @Override
     36    public boolean equals(Object o) {
     37        if (this == o) return true;
     38        if (o == null || getClass() != o.getClass()) return false;
     39        Worker worker = (Worker) o;
     40        return id_user!=null && Objects.equals(id_user, worker.id_user);
     41    }
     42
     43    @Override
     44    public int hashCode() {
     45        return Objects.hash();
     46    }
     47
    3448    public Worker() {
    3549
Note: See TracChangeset for help on using the changeset viewer.