source: src/main/java/tech/techharbor/Model/ProductIsInStockInWarehouseModel.java

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 
1package tech.techharbor.Model;
2
3import jakarta.persistence.*;
4import lombok.Data;
5import tech.techharbor.Model.EmbeddedClasses.ProductIsInStockInWarehouseClass;
6
7import 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")
12public 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.