source: src/main/java/com/example/medweb/model/Bolnica.java

Last change on this file was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 2 years ago

initial commit

  • Property mode set to 100644
File size: 767 bytes
Line 
1package com.example.medweb.model;
2
3
4import lombok.Data;
5
6import javax.persistence.Entity;
7import javax.persistence.GeneratedValue;
8import javax.persistence.GenerationType;
9import javax.persistence.Id;
10
11
12@Data
13@Entity
14public class Bolnica {
15
16 @Id
17 @GeneratedValue(strategy = GenerationType.IDENTITY)
18 private Integer bolnica_id;
19 private String naziv;
20 private String grad;
21 private Integer broj;
22 private String ulica;
23 private String smetka_bolnica;
24
25 public Bolnica() {
26 }
27
28 public Bolnica(String naziv, String grad, Integer broj, String ulica, String smetka_bolnica) {
29 this.naziv = naziv;
30 this.grad = grad;
31 this.broj = broj;
32 this.ulica = ulica;
33 this.smetka_bolnica = smetka_bolnica;
34 }
35}
Note: See TracBrowser for help on using the repository browser.