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:
560 bytes
|
Rev | Line | |
---|
[8d11f8c] | 1 | package com.example.fooddeliverysystem.model;
|
---|
| 2 |
|
---|
| 3 | import com.example.fooddeliverysystem.model.enums.Role;
|
---|
| 4 | import jakarta.persistence.*;
|
---|
| 5 | import lombok.AllArgsConstructor;
|
---|
| 6 | import lombok.Data;
|
---|
| 7 | import lombok.NoArgsConstructor;
|
---|
| 8 |
|
---|
| 9 | @Entity
|
---|
| 10 | @Table(name = "dostavuvac")
|
---|
| 11 | @Data
|
---|
| 12 | @AllArgsConstructor
|
---|
| 13 | @NoArgsConstructor
|
---|
| 14 | public class Deliver {
|
---|
| 15 |
|
---|
| 16 | @Id
|
---|
| 17 | @Column(name = "korisnik_id")
|
---|
| 18 | private Long delivererId;
|
---|
| 19 |
|
---|
| 20 | @ManyToOne
|
---|
| 21 | @JoinColumn(name = "admin_id")
|
---|
| 22 | private Admin admin;
|
---|
| 23 |
|
---|
| 24 | @ManyToOne
|
---|
| 25 | @JoinColumn(name = "vozilo_id")
|
---|
| 26 | private Vehicle vehicle;
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.