source: source/freeparkingspace/src/main/java/com/proekt/model/ParkingMesto.java

Last change on this file was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 2 years ago

proekt

  • Property mode set to 100644
File size: 823 bytes
Line 
1package com.proekt.model;
2import lombok.Data;
3import javax.persistence.ManyToOne;
4import javax.persistence.*;
5
6@Data
7@Table(name = "parking_mesto")
8@Entity
9public class ParkingMesto {
10
11
12 @Id
13 @Column(nullable = false, unique = true)
14 private int brojNaPmesta;
15
16 @ManyToOne
17 @JoinColumn(name="idzona")
18 public Zona idZona;
19
20 public ParkingMesto(int brojNaPmesta, Zona idZona) {
21 this.brojNaPmesta = brojNaPmesta;
22 this.idZona = idZona;
23 }
24
25 public ParkingMesto() {
26 }
27
28 public int getBrojNaPmesta() {
29 return brojNaPmesta;
30 }
31
32 public void setBrojNaPmesta(int brojNaPmesta) {
33 this.brojNaPmesta = brojNaPmesta;
34 }
35
36 public Zona getIdZona() {
37 return idZona;
38 }
39
40 public void setIdZona(Zona idZona) {
41 this.idZona = idZona;
42 }
43
44}
Note: See TracBrowser for help on using the repository browser.