main
Last change
on this file was f4b4afa, checked in by Nikola Todoroski <nikola.todoroski@…>, 6 months ago |
Pushed whole project, original project location on github:https://github.com/hehxd/Tech-Harbor
|
-
Property mode
set to
100644
|
File size:
752 bytes
|
Line | |
---|
1 | package tech.techharbor.Model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 | import java.util.Objects;
|
---|
7 |
|
---|
8 | @Entity
|
---|
9 | @Data
|
---|
10 | @Table(name = "administrator", schema = "project", catalog = "db_202324z_va_prj_techharbor")
|
---|
11 | public class AdministratorModel {
|
---|
12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
13 | @Id
|
---|
14 | @Column(name = "user_id", nullable = false)
|
---|
15 | private Integer userId;
|
---|
16 |
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public boolean equals(Object o) {
|
---|
20 | if (this == o) return true;
|
---|
21 | if (o == null || getClass() != o.getClass()) return false;
|
---|
22 | AdministratorModel that = (AdministratorModel) o;
|
---|
23 | return Objects.equals(userId, that.userId);
|
---|
24 | }
|
---|
25 |
|
---|
26 | @Override
|
---|
27 | public int hashCode() {
|
---|
28 | return Objects.hash(userId);
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.