source: src/main/java/com/example/baza/model/Dobavuvac.java

Last change on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 850 bytes
Line 
1package com.example.baza.model;
2
3import lombok.NoArgsConstructor;
4
5import javax.persistence.*;
6
7@Entity
8@Table(name = "dobavuvac", schema = "project")
9@NoArgsConstructor
10public class Dobavuvac {
11 @Id
12 @GeneratedValue(strategy = GenerationType.IDENTITY)
13 @Column(name = "id_na_dobavuvac", nullable = false)
14 private Integer id;
15
16 @Column(name = "ime_na_dobavuvac", nullable = false, length = 100)
17 private String imeNaDobavuvac;
18
19 public Dobavuvac(String imeDobabuvac) {
20 this.imeNaDobavuvac=imeDobabuvac;
21 }
22
23 public String getImeNaDobavuvac() {
24 return imeNaDobavuvac;
25 }
26
27 public void setImeNaDobavuvac(String imeNaDobavuvac) {
28 this.imeNaDobavuvac = imeNaDobavuvac;
29 }
30
31 public Integer getId() {
32 return id;
33 }
34
35 public void setId(Integer id) {
36 this.id = id;
37 }
38}
Note: See TracBrowser for help on using the repository browser.