source: src/main/java/com/example/autopartz/model/manytomany/PartIsInStockInWarehouse.java@ 4d67d70

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
Line 
1package com.example.autopartz.model.manytomany;
2
3import lombok.*;
4
5import 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)
14public 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.