source: src/main/java/com/example/fooddeliverysystem/model/SalePlaceEmployee.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: 654 bytes
Line 
1package com.example.fooddeliverysystem.model;
2
3import com.example.fooddeliverysystem.model.enums.Role;
4import jakarta.persistence.*;
5import lombok.AllArgsConstructor;
6import lombok.Data;
7import lombok.NoArgsConstructor;
8
9@Entity
10@Table(name = "vrabotenpd")
11
12@AllArgsConstructor
13@NoArgsConstructor
14public class SalePlaceEmployee {
15
16 @Id
17 @Column(name = "korisnik_id")
18 private Long salePlaceEmployeeId;
19
20 @ManyToOne
21 @JoinColumn(name = "id_mesto")
22 private SalePlace salePlace;
23
24 public Long getSalePlaceEmployeeId() {
25 return salePlaceEmployeeId;
26 }
27
28 public SalePlace getSalePlace() {
29 return salePlace;
30 }
31}
Note: See TracBrowser for help on using the repository browser.