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