source: source/freeparkingspace/src/main/java/com/proekt/model/Plakjanje.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: 916 bytes
Line 
1package com.proekt.model;
2import com.proekt.model.Korisnik.Korisnik;
3import lombok.Data;
4import javax.persistence.ManyToOne;
5import javax.persistence.*;
6
7@Data
8@Table
9@Entity
10
11public class Plakjanje {
12
13 @Id
14 @Column(nullable = false, unique = true)
15 private int idPlakanje;
16
17 @Column(nullable = false,length = 30,unique = true)
18 private String brTel;
19
20 @Column(nullable = false,length = 150,unique = true)
21 private String brNaSmetka;
22
23 @Column(nullable = false,length = 150,unique = true)
24 private String tipPlakjanje;
25 @ManyToOne
26 @JoinColumn(name="korisnickoime")
27 public Korisnik korisnickoIme;
28
29 public Plakjanje() {
30 }
31
32 public Plakjanje(int idPlakanje, String brTel, String brNaSmetka, String tipPlakjanje) {
33 this.idPlakanje = idPlakanje;
34 this.brTel = brTel;
35 this.brNaSmetka = brNaSmetka;
36 this.tipPlakjanje = tipPlakjanje;
37 }
38}
Note: See TracBrowser for help on using the repository browser.