source: Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/VetClinic.java@ d1fe9c2

main
Last change on this file since d1fe9c2 was fdd7961, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 16 months ago

fix many to one relations

  • Property mode set to 100644
File size: 819 bytes
Line 
1package finki.paw5.model.entities;
2
3import jakarta.persistence.*;
4import lombok.Data;
5import lombok.RequiredArgsConstructor;
6
7@Data
8@Entity
9@RequiredArgsConstructor
10@Table(name = "vet_clinic")
11public class VetClinic {
12
13 @Id
14 @GeneratedValue(strategy = GenerationType.IDENTITY)
15 @Column(name = "id_vet_clinic")
16 private Integer 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}
Note: See TracBrowser for help on using the repository browser.