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 | |
---|
1 | package com.example.medweb.model;
|
---|
2 |
|
---|
3 | import lombok.Data;
|
---|
4 |
|
---|
5 | import javax.persistence.Entity;
|
---|
6 | import javax.persistence.GeneratedValue;
|
---|
7 | import javax.persistence.GenerationType;
|
---|
8 | import javax.persistence.Id;
|
---|
9 |
|
---|
10 |
|
---|
11 |
|
---|
12 | @Data
|
---|
13 | @Entity
|
---|
14 | public 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.