main
Last change
on this file since f4b4afa 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:
962 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 = "warehouse", schema = "project", catalog = "db_202324z_va_prj_techharbor")
|
---|
11 | public class WarehouseModel {
|
---|
12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
13 | @Id
|
---|
14 | @Column(name = "warehouse_id", nullable = false)
|
---|
15 | private Integer warehouseId;
|
---|
16 | @Basic
|
---|
17 | @Column(name = "warehouse_location", nullable = false, length = 100)
|
---|
18 | private String warehouseLocation;
|
---|
19 |
|
---|
20 | @Override
|
---|
21 | public boolean equals(Object o) {
|
---|
22 | if (this == o) return true;
|
---|
23 | if (o == null || getClass() != o.getClass()) return false;
|
---|
24 | WarehouseModel that = (WarehouseModel) o;
|
---|
25 | return Objects.equals(warehouseId, that.warehouseId) && Objects.equals(warehouseLocation, that.warehouseLocation);
|
---|
26 | }
|
---|
27 |
|
---|
28 | @Override
|
---|
29 | public int hashCode() {
|
---|
30 | return Objects.hash(warehouseId, warehouseLocation);
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.