main
Last change
on this file since 29c4253 was 3d3e59d, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 19 months ago |
move entity models to separate folder
|
-
Property mode
set to
100644
|
File size:
783 bytes
|
Line | |
---|
1 | package finki.paw5.model.entities;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 | @Data
|
---|
7 | @Entity
|
---|
8 | @Table(name = "vet_clinic")
|
---|
9 | public class VetClinic {
|
---|
10 |
|
---|
11 | @Id
|
---|
12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
13 | @Column(name = "id_vet_clinic")
|
---|
14 | private int id;
|
---|
15 |
|
---|
16 | @Column(name = "telephone_vet_clinic", nullable = false, length = 20)
|
---|
17 | private String telephone;
|
---|
18 |
|
---|
19 | @Column(name = "address_vet_clinic", nullable = false, length = 100)
|
---|
20 | private String address;
|
---|
21 |
|
---|
22 | @Column(name = "name_vet_clinic", nullable = false, length = 100)
|
---|
23 | private String name;
|
---|
24 |
|
---|
25 | public VetClinic(String telephone, String address, String name) {
|
---|
26 | this.telephone = telephone;
|
---|
27 | this.address = address;
|
---|
28 | this.name = name;
|
---|
29 | }
|
---|
30 |
|
---|
31 | public VetClinic() {
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.