Last change
on this file was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 22 months ago |
proekt
|
-
Property mode
set to
100644
|
File size:
916 bytes
|
Rev | Line | |
---|
[31d67c0] | 1 | package com.proekt.model;
|
---|
| 2 | import com.proekt.model.Korisnik.Korisnik;
|
---|
| 3 | import lombok.Data;
|
---|
| 4 | import javax.persistence.ManyToOne;
|
---|
| 5 | import javax.persistence.*;
|
---|
| 6 |
|
---|
| 7 | @Data
|
---|
| 8 | @Table
|
---|
| 9 | @Entity
|
---|
| 10 |
|
---|
| 11 | public 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.