source: src/main/java/com/example/medweb/model/Lekovi.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: 567 bytes
Line 
1package com.example.medweb.model;
2
3import lombok.Data;
4
5import javax.persistence.Entity;
6import javax.persistence.GeneratedValue;
7import javax.persistence.GenerationType;
8import javax.persistence.Id;
9
10
11
12@Data
13@Entity
14public class Lekovi {
15
16 @Id
17 @GeneratedValue (strategy = GenerationType.IDENTITY)
18 private Integer lek_id;
19 private String ime_lek;
20 private String genericko_ime;
21
22 public Lekovi() {
23 }
24
25 public Lekovi(String ime_lek, String genericko_ime) {
26 this.ime_lek = ime_lek;
27 this.genericko_ime = genericko_ime;
28 }
29}
Note: See TracBrowser for help on using the repository browser.