source: Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Shelter.java@ da44aef

main
Last change on this file since da44aef was da44aef, checked in by trajchevaM <118018439+trajchevaM@…>, 17 months ago

register functionality

  1. Changed css of login.html
  2. Changed css and html of register
  3. Foreign keys in Adopter and Employee changed from int to Integer
  4. AuthorisationService updated with methods for employee and adopter registration
  5. RegisterController works only for employee and adopter
  6. Added services for Organisation and Shelter for dropdown list on registration form
  • Property mode set to 100644
File size: 1.0 KB
Line 
1package finki.paw5.model.entities;
2
3import jakarta.persistence.*;
4import lombok.Data;
5
6@Data
7@Entity
8@Table(name = "shelter")
9public class Shelter {
10
11 @Id
12 @GeneratedValue(strategy = GenerationType.IDENTITY)
13 @Column(name = "id_shelter")
14 private Integer id;
15
16 @Column(name = "address_shelter", nullable = false, length = 100)
17 private String address;
18
19 @Column(name = "telephone_shelter", nullable = false, length = 20)
20 private String telephone;
21
22 @Column(name = "id_organisation")
23 private Integer organisationId;
24
25 @Column(name = "name_shelter", nullable = false, length = 100)
26 private String name;
27
28 @Column(name = "email_shelter", nullable = false, length = 100, unique = true)
29 private String email;
30
31 public Shelter(String address, String telephone, Integer organisationId, String name, String email) {
32 this.address = address;
33 this.telephone = telephone;
34 this.organisationId = organisationId;
35 this.name = name;
36 this.email = email;
37 }
38
39 public Shelter() {
40 }
41}
Note: See TracBrowser for help on using the repository browser.