Ignore:
Timestamp:
02/16/23 14:45:18 (21 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
9a180fd
Parents:
59a8941 (diff), eef07ff (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge changes from main & resolve conflicts

Location:
Prototype Application/Paw5/src/main/java/finki/paw5
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Adopter.java

    r59a8941 r50f2c2a  
    2323
    2424    @Column(name = "has_other_pets")
    25     private boolean hasOtherPets;
     25    private Boolean hasOtherPets;
    2626
    2727    @Column(name = "has_kids")
    28     private boolean hasKids;
     28    private Boolean hasKids;
    2929
    3030    @Column(name = "housing")
     
    3535
    3636    @Column(name = "will_foster")
    37     private boolean willFoster;
     37    private Boolean willFoster;
    3838
    3939    @Column(name = "is_verified", nullable = false)
    40     private boolean verified;
     40    private Boolean verified;
    4141
    4242    @Column(name = "verified_by_employee")
  • Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/AuthServiceImplementation.java

    r59a8941 r50f2c2a  
    1717
    1818@Service
    19 public class AuthServiceImpl implements AuthService {
     19public class AuthServiceImplementation implements AuthService {
    2020
    2121    private final UserRepository userRepository;
     
    2323    private final EmployeeRepository employeeRepository;
    2424
    25     public AuthServiceImpl(UserRepository userRepository, AdopterRepository adopterRepository, EmployeeRepository employeeRepository) {
     25    public AuthServiceImplementation(UserRepository userRepository, AdopterRepository adopterRepository, EmployeeRepository employeeRepository) {
    2626        this.userRepository = userRepository;
    2727        this.adopterRepository = adopterRepository;
  • Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/OrganisationServiceImplementation.java

    r59a8941 r50f2c2a  
    88import java.util.List;
    99@Service
    10 public class OrganisationServiceImpl implements OrganisationService {
     10public class OrganisationServiceImplementation implements OrganisationService {
    1111    private final OrganisationRepository organisationRepository;
    1212
    13     public OrganisationServiceImpl(OrganisationRepository organisationRepository) {
     13    public OrganisationServiceImplementation(OrganisationRepository organisationRepository) {
    1414        this.organisationRepository = organisationRepository;
    1515    }
  • Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/RegisterController.java

    r59a8941 r50f2c2a  
    4242                               @RequestParam String password, @RequestParam String repeatPassword,
    4343                               @RequestParam String telephone,@RequestParam String role,
    44                                HttpServletRequest request) {
     44                               @RequestParam (required = false) String freeTime,  @RequestParam (required = false) String funds,
     45                               @RequestParam (required = false) boolean hasOtherPets, @RequestParam (required = false) boolean hasKids,
     46                               @RequestParam (required = false) String housing, @RequestParam (required = false) String physicalActivity,
     47                               @RequestParam (required = false) boolean willFoster, @RequestParam (required = false) Integer shelter,
     48                               @RequestParam (required = false)  String position, HttpServletRequest request) {
    4549
    4650        if(role.equals("adopter") & password.equals(repeatPassword)){
    47             String freeTime = request.getParameter("freeTime");
    48             String funds = request.getParameter("funds");
    49             boolean hasOtherPets = Boolean.parseBoolean(request.getParameter("hasOtherPets"));
    50             boolean hasKids = Boolean.parseBoolean(request.getParameter("hasKids"));
    51             String housing = request.getParameter("housing");
    52             String physicalActivity = request.getParameter("physicalActivity");
    53             boolean willFoster = Boolean.parseBoolean(request.getParameter("willFoster"));
    5451
    5552            FreeTime ft = FreeTime.valueOf(freeTime);
     
    6461        }
    6562        else if(role.equals("employee") & password.equals(repeatPassword)){
    66             Integer shelter = Integer.valueOf(request.getParameter("shelter"));
    67             String position = request.getParameter("position");
    6863
    6964            Employee employeeUser = authService.registerEmployee(name, email, password, telephone,position,shelter);
Note: See TracChangeset for help on using the changeset viewer.