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 | |
---|
1 | package com.example.fooddeliverysystem.model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.Column;
|
---|
4 | import jakarta.persistence.Embeddable;
|
---|
5 | import lombok.AllArgsConstructor;
|
---|
6 | import lombok.Data;
|
---|
7 | import lombok.NoArgsConstructor;
|
---|
8 |
|
---|
9 | import java.io.Serializable;
|
---|
10 |
|
---|
11 | @Embeddable
|
---|
12 | @Data
|
---|
13 | @NoArgsConstructor
|
---|
14 |
|
---|
15 | public 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.