1 | package com.example.baza.model;
|
---|
2 |
|
---|
3 | import lombok.NoArgsConstructor;
|
---|
4 |
|
---|
5 | import javax.persistence.*;
|
---|
6 |
|
---|
7 | @Entity
|
---|
8 | @Table(name = "izdavac", schema = "project")
|
---|
9 | @NoArgsConstructor
|
---|
10 | public class Izdavac {
|
---|
11 | @Id
|
---|
12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
13 | @Column(name = "id_na_izdavac", nullable = false)
|
---|
14 | private Integer id;
|
---|
15 |
|
---|
16 | @Column(name = "email", nullable = false, length = 50)
|
---|
17 | private String email;
|
---|
18 |
|
---|
19 | @Column(name = "lokacija", nullable = false, length = 200)
|
---|
20 | private String lokacija;
|
---|
21 |
|
---|
22 | @Column(name = "ime_na_izdavac", nullable = false, length = 100)
|
---|
23 | private String imeNaIzdavac;
|
---|
24 |
|
---|
25 | public Izdavac(String email, String lokacija, String imeNaIzdavac) {
|
---|
26 | this.email = email;
|
---|
27 | this.lokacija = lokacija;
|
---|
28 | this.imeNaIzdavac = imeNaIzdavac;
|
---|
29 | }
|
---|
30 |
|
---|
31 | public String getImeNaIzdavac() {
|
---|
32 | return imeNaIzdavac;
|
---|
33 | }
|
---|
34 |
|
---|
35 | public void setImeNaIzdavac(String imeNaIzdavac) {
|
---|
36 | this.imeNaIzdavac = imeNaIzdavac;
|
---|
37 | }
|
---|
38 |
|
---|
39 | public String getLokacija() {
|
---|
40 | return lokacija;
|
---|
41 | }
|
---|
42 |
|
---|
43 | public void setLokacija(String lokacija) {
|
---|
44 | this.lokacija = lokacija;
|
---|
45 | }
|
---|
46 |
|
---|
47 | public String getEmail() {
|
---|
48 | return email;
|
---|
49 | }
|
---|
50 |
|
---|
51 | public void setEmail(String email) {
|
---|
52 | this.email = email;
|
---|
53 | }
|
---|
54 |
|
---|
55 | public Integer getId() {
|
---|
56 | return id;
|
---|
57 | }
|
---|
58 |
|
---|
59 | public void setId(Integer id) {
|
---|
60 | this.id = id;
|
---|
61 | }
|
---|
62 | } |
---|