Changeset d7f5da9 for src/main/java/com/example/moviezone/model/Worker.java
- Timestamp:
- 02/07/23 13:48:25 (22 months ago)
- Branches:
- master
- Children:
- fc448f5
- Parents:
- f7b0906
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/Worker.java
rf7b0906 rd7f5da9 10 10 import java.util.Collection; 11 11 import java.util.Collections; 12 import java.util.Objects; 12 13 13 14 @Entity … … 32 33 } 33 34 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 34 48 public Worker() { 35 49
Note:
See TracChangeset
for help on using the changeset viewer.