Last change
on this file since b3f2adb was b3f2adb, checked in by Aleksandar Siljanoski <acewow3@…>, 14 months ago |
Adding project to repo
|
-
Property mode
set to
100644
|
File size:
673 bytes
|
Line | |
---|
1 | package com.example.eatys_app.model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 |
|
---|
5 | @Entity
|
---|
6 | @Table(name = "tip", schema = "project")
|
---|
7 | public class Tip {
|
---|
8 |
|
---|
9 | @Id
|
---|
10 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
11 | @Column(name = "tip_id", nullable = false)
|
---|
12 | private Integer Id;
|
---|
13 |
|
---|
14 | @Column(name = "tip_ime", nullable = false)
|
---|
15 | private String ime;
|
---|
16 |
|
---|
17 | public Tip() {
|
---|
18 | }
|
---|
19 |
|
---|
20 | public Tip(String ime) {
|
---|
21 | this.ime = ime;
|
---|
22 | }
|
---|
23 |
|
---|
24 | public Integer getId() {
|
---|
25 | return Id;
|
---|
26 | }
|
---|
27 |
|
---|
28 | public void setId(Integer id) {
|
---|
29 | Id = id;
|
---|
30 | }
|
---|
31 |
|
---|
32 | public String getIme() {
|
---|
33 | return ime;
|
---|
34 | }
|
---|
35 |
|
---|
36 | public void setIme(String ime) {
|
---|
37 | this.ime = ime;
|
---|
38 | }
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.