Changeset 4d67d70 for src/main/java/com/example/autopartz/model/manytomany
- Timestamp:
- 01/07/23 01:51:16 (23 months ago)
- Branches:
- main
- Children:
- ed7ef92
- Parents:
- 89865ae
- Location:
- src/main/java/com/example/autopartz/model/manytomany
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/manytomany/PartIsInStockInWarehouse.java
r89865ae r4d67d70 1 1 package com.example.autopartz.model.manytomany; 2 2 3 import lombok.Getter; 4 import lombok.RequiredArgsConstructor; 5 import lombok.Setter; 6 import lombok.ToString; 3 import lombok.*; 7 4 8 5 import javax.persistence.*; … … 12 9 @Setter 13 10 @ToString 14 @ RequiredArgsConstructor11 @NoArgsConstructor 15 12 @Table(name = "`part_is_in_stock_in_warehouse`") 16 13 @IdClass(PartIsInStockInWarehouseId.class) … … 24 21 @Column(name = "quantity_warehouse") 25 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 } 26 29 } -
src/main/java/com/example/autopartz/model/manytomany/PartIsInStockInWarehouseId.java
r89865ae r4d67d70 9 9 Integer partid; 10 10 Integer warehouseid; 11 12 public PartIsInStockInWarehouseId(Integer pId, Integer whId) { 13 this.partid = pId; 14 this.warehouseid = whId; 15 } 16 17 public PartIsInStockInWarehouseId() { 18 } 11 19 }
Note:
See TracChangeset
for help on using the changeset viewer.