main
Last change
on this file since 4d67d70 was 4d67d70, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 18 months ago |
Final touches
|
-
Property mode
set to
100644
|
File size:
676 bytes
|
Rev | Line | |
---|
[1bd8d1e] | 1 | package com.example.autopartz.model.manytomany;
|
---|
| 2 |
|
---|
[4d67d70] | 3 | import lombok.*;
|
---|
[1bd8d1e] | 4 |
|
---|
| 5 | import javax.persistence.*;
|
---|
| 6 |
|
---|
| 7 | @Entity
|
---|
| 8 | @Getter
|
---|
| 9 | @Setter
|
---|
| 10 | @ToString
|
---|
[4d67d70] | 11 | @NoArgsConstructor
|
---|
[1bd8d1e] | 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;
|
---|
[4d67d70] | 23 |
|
---|
| 24 | public PartIsInStockInWarehouse(Integer partid, Integer warehouseid, Integer quantity) {
|
---|
| 25 | this.partid = partid;
|
---|
| 26 | this.warehouseid = warehouseid;
|
---|
| 27 | this.quantity = quantity;
|
---|
| 28 | }
|
---|
[1bd8d1e] | 29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.