main
Last change
on this file since 4fd6e1a was 4d67d70, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 21 months ago |
Final touches
|
-
Property mode
set to
100644
|
File size:
676 bytes
|
Line | |
---|
1 | package com.example.autopartz.model.manytomany;
|
---|
2 |
|
---|
3 | import lombok.*;
|
---|
4 |
|
---|
5 | import javax.persistence.*;
|
---|
6 |
|
---|
7 | @Entity
|
---|
8 | @Getter
|
---|
9 | @Setter
|
---|
10 | @ToString
|
---|
11 | @NoArgsConstructor
|
---|
12 | @Table(name = "`part_is_in_stock_in_warehouse`")
|
---|
13 | @IdClass(PartIsInStockInWarehouseId.class)
|
---|
14 | public class PartIsInStockInWarehouse {
|
---|
15 | @Id
|
---|
16 | @Column(name = "id_part")
|
---|
17 | Integer partid;
|
---|
18 | @Column(name = "id_warehouse")
|
---|
19 | @Id
|
---|
20 | Integer warehouseid;
|
---|
21 | @Column(name = "quantity_warehouse")
|
---|
22 | Integer quantity;
|
---|
23 |
|
---|
24 | public PartIsInStockInWarehouse(Integer partid, Integer warehouseid, Integer quantity) {
|
---|
25 | this.partid = partid;
|
---|
26 | this.warehouseid = warehouseid;
|
---|
27 | this.quantity = quantity;
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.