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:
664 bytes
|
Line | |
---|
1 | package tech.techharbor.Model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 | import tech.techharbor.Model.EmbeddedClasses.ProductIsInStockInWarehouseClass;
|
---|
6 |
|
---|
7 | import java.util.Objects;
|
---|
8 |
|
---|
9 | @Entity
|
---|
10 | @Data
|
---|
11 | @Table(name = "product_is_in_stock_in_warehouse", schema = "project", catalog = "db_202324z_va_prj_techharbor")
|
---|
12 | public class ProductIsInStockInWarehouseModel {
|
---|
13 | @EmbeddedId
|
---|
14 | ProductIsInStockInWarehouseClass productIsInStockInWarehouseClass;
|
---|
15 | @Basic
|
---|
16 | @Column(name = "quantity", nullable = false)
|
---|
17 | private Integer quantity;
|
---|
18 |
|
---|
19 | @Override
|
---|
20 | public int hashCode() {
|
---|
21 | return Objects.hash(productIsInStockInWarehouseClass, quantity);
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.