Last change
on this file since 8d11f8c was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 20 months ago |
code added, trial 2
|
-
Property mode
set to
100644
|
File size:
599 bytes
|
Line | |
---|
1 | package com.example.fooddeliverysystem.model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.Column;
|
---|
4 | import jakarta.persistence.Entity;
|
---|
5 | import jakarta.persistence.Id;
|
---|
6 | import jakarta.persistence.Table;
|
---|
7 | import lombok.AllArgsConstructor;
|
---|
8 | import lombok.Data;
|
---|
9 | import lombok.NoArgsConstructor;
|
---|
10 |
|
---|
11 | @Entity
|
---|
12 | @Table(name = "namirnica")
|
---|
13 | @Data
|
---|
14 | @AllArgsConstructor
|
---|
15 | @NoArgsConstructor
|
---|
16 | public class FoodStructure {
|
---|
17 |
|
---|
18 | @Id
|
---|
19 | @Column(name = "id_namirnica")
|
---|
20 | private Long foodStructureId;
|
---|
21 |
|
---|
22 | @Column(name = "ime_name")
|
---|
23 | private String foodStructureName;
|
---|
24 |
|
---|
25 | @Column(name = "dali_alergent")
|
---|
26 | private Boolean isAllergen;
|
---|
27 |
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.