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:
561 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 = "lokacija")
|
---|
13 | @Data
|
---|
14 | @NoArgsConstructor
|
---|
15 | @AllArgsConstructor
|
---|
16 | public class Location {
|
---|
17 | @Id
|
---|
18 | @Column(name = "lokacija_id")
|
---|
19 | private Long locationId;
|
---|
20 |
|
---|
21 |
|
---|
22 | @Column(name = "adresa")
|
---|
23 | private String address;
|
---|
24 |
|
---|
25 | @Column(name = "broj")
|
---|
26 | private Integer number;
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.