Changeset a0e93df


Ignore:
Timestamp:
01/23/25 19:37:29 (3 months ago)
Author:
Ljubomir Ilievski <ilievski.ljubomir@…>
Branches:
master
Children:
be26658
Parents:
f9ef3e8
Message:

removed partial lombok

Location:
ReserveNGo-backend/src/main/java/mk/ukim/finki/it/reservengo/model
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ReserveNGo-backend/src/main/java/mk/ukim/finki/it/reservengo/model/Customer.java

    rf9ef3e8 ra0e93df  
    1414
    1515@EqualsAndHashCode(callSuper = true)
    16 @Data
     16
    1717@Entity
    18 @AllArgsConstructor
    19 @NoArgsConstructor
    2018public class Customer extends User {
    2119    public Customer(String firstName, String lastName, String email, String password, String phoneNumber, Role userRole) {
    2220        super(firstName, lastName, email, password, phoneNumber, userRole);
     21    }
     22
     23    public Customer() {
     24    }
     25
     26    public Customer(List<Reservation> reservations, List<Local> favouriteLocals) {
     27        this.reservations = reservations;
     28        this.favouriteLocals = favouriteLocals;
    2329    }
    2430
     
    2935    private List<Local> favouriteLocals;
    3036
     37    public List<Reservation> getReservations() {
     38        return reservations;
     39    }
     40
     41    public List<Local> getFavouriteLocals() {
     42        return favouriteLocals;
     43    }
    3144
    3245}
  • ReserveNGo-backend/src/main/java/mk/ukim/finki/it/reservengo/model/JWTAuthenticationResponse.java

    rf9ef3e8 ra0e93df  
    66import mk.ukim.finki.it.reservengo.model.enumerations.Role;
    77
    8 @Data
    9 @AllArgsConstructor
    10 @NoArgsConstructor
     8
    119public class JWTAuthenticationResponse {
    1210    private Long id;
     
    1715    private Role role;
    1816    private String token;
     17
     18    public JWTAuthenticationResponse(Long id, String firstName, String lastName, String email, String phoneNumber, Role role, String token) {
     19        this.id = id;
     20        this.firstName = firstName;
     21        this.lastName = lastName;
     22        this.email = email;
     23        this.phoneNumber = phoneNumber;
     24        this.role = role;
     25        this.token = token;
     26    }
     27
     28    public JWTAuthenticationResponse() {}
     29
     30    public Long getId() {
     31        return id;
     32    }
     33
     34    public String getFirstName() {
     35        return firstName;
     36    }
     37
     38    public String getLastName() {
     39        return lastName;
     40    }
     41
     42    public String getEmail() {
     43        return email;
     44    }
     45
     46    public String getPhoneNumber() {
     47        return phoneNumber;
     48    }
     49
     50    public Role getRole() {
     51        return role;
     52    }
     53
     54    public String getToken() {
     55        return token;
     56    }
    1957}
  • ReserveNGo-backend/src/main/java/mk/ukim/finki/it/reservengo/model/Local.java

    rf9ef3e8 ra0e93df  
    1010import java.util.Map;
    1111
    12 @Data
     12
    1313@Entity
    14 @AllArgsConstructor
    15 @NoArgsConstructor
    1614@Table(name = "local_")
    1715public class Local {
    1816    public Local(String name, String description, String address, String workingHours, List<Service> availableServices, Map<Long, Integer> ratings, List<Event> events, List<String> localPhotos, String menuPhoto, String menuLink, Contact contact, List<Reservation> reservations, List<LocalWorker> workers) {
     17        this.name = name;
     18        this.description = description;
     19        this.address = address;
     20        this.workingHours = workingHours;
     21        this.availableServices = availableServices;
     22        this.ratings = ratings;
     23        this.events = events;
     24        this.localPhotos = localPhotos;
     25        this.menuPhoto = menuPhoto;
     26        this.menuLink = menuLink;
     27        this.contact = contact;
     28        this.reservations = reservations;
     29        this.workers = workers;
     30    }
     31
     32    public Local() {
     33    }
     34
     35    public Local(Long id, String name, String description, String address, String workingHours, List<Service> availableServices, Map<Long, Integer> ratings, List<Event> events, List<String> localPhotos, String menuPhoto, String menuLink, Contact contact, List<Reservation> reservations, List<LocalWorker> workers) {
     36        this.id = id;
    1937        this.name = name;
    2038        this.description = description;
     
    7088    @OneToMany(mappedBy = "local")
    7189    private List<LocalWorker> workers;
     90
     91
     92    public Long getId() {
     93        return id;
     94    }
     95
     96    public String getName() {
     97        return name;
     98    }
     99
     100    public String getDescription() {
     101        return description;
     102    }
     103
     104    public String getAddress() {
     105        return address;
     106    }
     107
     108    public String getWorkingHours() {
     109        return workingHours;
     110    }
     111
     112    public List<Service> getAvailableServices() {
     113        return availableServices;
     114    }
     115
     116    public Map<Long, Integer> getRatings() {
     117        return ratings;
     118    }
     119
     120    public List<Event> getEvents() {
     121        return events;
     122    }
     123
     124    public List<String> getLocalPhotos() {
     125        return localPhotos;
     126    }
     127
     128    public String getMenuPhoto() {
     129        return menuPhoto;
     130    }
     131
     132    public String getMenuLink() {
     133        return menuLink;
     134    }
     135
     136    public Contact getContact() {
     137        return contact;
     138    }
     139
     140    public List<Reservation> getReservations() {
     141        return reservations;
     142    }
     143
     144    public List<LocalWorker> getWorkers() {
     145        return workers;
     146    }
    72147}
  • ReserveNGo-backend/src/main/java/mk/ukim/finki/it/reservengo/model/User.java

    rf9ef3e8 ra0e93df  
    1414import java.util.List;
    1515
    16 @Data
     16
    1717@Entity
    18 @AllArgsConstructor
    19 @NoArgsConstructor
    2018@Inheritance(strategy = InheritanceType.JOINED)
    2119@Table(name = "app_user")
     
    5351    }
    5452
     53    public User() {}
     54
     55    public User(Long id, String firstName, String lastName, String email, String password, String phoneNumber, Role userRole) {
     56        this.id = id;
     57        this.firstName = firstName;
     58        this.lastName = lastName;
     59        this.email = email;
     60        this.password = password;
     61        this.phoneNumber = phoneNumber;
     62        this.userRole = userRole;
     63    }
     64
    5565    @Override
    5666    public String getPassword() {
     
    8393    }
    8494
    85 //    public Long getId() {
    86 //        return id;
    87 //    }
    88 //
    89 //    public String getFirstName() {
    90 //        return firstName;
    91 //    }
    92 //
    93 //    public String getLastName() {
    94 //        return lastName;
    95 //    }
    96 //
    97 //    public String getEmail() {
    98 //        return email;
    99 //    }
    100 //
    101 //    public String getPhoneNumber() {
    102 //        return phoneNumber;
    103 //    }
    104 //
    105 //    public Role getUserRole() {
    106 //        return userRole;
    107 //    }
     95    public Long getId() {
     96        return id;
     97    }
     98
     99    public String getFirstName() {
     100        return firstName;
     101    }
     102
     103    public String getLastName() {
     104        return lastName;
     105    }
     106
     107    public String getEmail() {
     108        return email;
     109    }
     110
     111    public String getPhoneNumber() {
     112        return phoneNumber;
     113    }
     114
     115    public Role getUserRole() {
     116        return userRole;
     117    }
    108118
    109119//    @Override
Note: See TracChangeset for help on using the changeset viewer.