Last change
on this file was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 2 years ago |
proekt
|
-
Property mode
set to
100644
|
File size:
834 bytes
|
Rev | Line | |
---|
[31d67c0] | 1 | package com.proekt.model;
|
---|
| 2 |
|
---|
| 3 | import lombok.Data;
|
---|
| 4 | import javax.persistence.ManyToOne;
|
---|
| 5 | import javax.persistence.*;
|
---|
| 6 |
|
---|
| 7 | @Data
|
---|
| 8 | @Table(name = "zona")
|
---|
| 9 | @Entity
|
---|
| 10 | public class Zona {
|
---|
| 11 | @Id
|
---|
| 12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 13 | @Column(nullable = false, unique = true)
|
---|
| 14 | private String idZona;
|
---|
| 15 | @ManyToOne
|
---|
| 16 | @JoinColumn(name="ime_na_parking_id_ime")
|
---|
| 17 | public ImeNaParking idIme;
|
---|
| 18 |
|
---|
| 19 | public Zona(String idZona, ImeNaParking idIme) {
|
---|
| 20 | this.idZona = idZona;
|
---|
| 21 | this.idIme = idIme;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | public Zona() {
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | public String getIdZona() {
|
---|
| 29 | return idZona;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | public void setIdZona(String idZona) {
|
---|
| 33 | this.idZona = idZona;
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | public ImeNaParking getIdIme() {
|
---|
| 37 | return idIme;
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | public void setIdIme(ImeNaParking idIme) {
|
---|
| 41 | this.idIme = idIme;
|
---|
| 42 | }
|
---|
| 43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.