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

main
Last change on this file since 8b7dd7f was ada7108, checked in by Filip Chorbeski <86695898+FilipChorbeski@…>, 17 months ago

change ids from int to Integer

Co-Authored-By: SazdovaEkaterina <74919977+SazdovaEkaterina@…>

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