source: src/main/java/com/example/fooddeliverysystem/model/OrderHasFoodKey.java

Last change on this file was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 20 months ago

code added, trial 2

  • Property mode set to 100644
File size: 593 bytes
Line 
1package com.example.fooddeliverysystem.model;
2
3import jakarta.persistence.Column;
4import jakarta.persistence.Embeddable;
5import lombok.AllArgsConstructor;
6import lombok.Data;
7import lombok.NoArgsConstructor;
8
9import java.io.Serializable;
10
11@Embeddable
12@Data
13@NoArgsConstructor
14
15public class OrderHasFoodKey implements Serializable {
16
17 @Column(name = "id_stavka")
18 private Long foodItemId;
19
20 @Column(name = "naracka_id")
21 private Long orderId;
22
23 public OrderHasFoodKey(Long foodItemId, Long orderId) {
24 this.foodItemId = foodItemId;
25 this.orderId = orderId;
26 }
27}
Note: See TracBrowser for help on using the repository browser.