Changes in / [50f2c2a:59a8941]
- Location:
- Prototype Application/Paw5/src/main/java/finki/paw5
- Files:
-
- 2 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Adopter.java
r50f2c2a r59a8941 23 23 24 24 @Column(name = "has_other_pets") 25 private Boolean hasOtherPets;25 private boolean hasOtherPets; 26 26 27 27 @Column(name = "has_kids") 28 private Boolean hasKids;28 private boolean hasKids; 29 29 30 30 @Column(name = "housing") … … 35 35 36 36 @Column(name = "will_foster") 37 private Boolean willFoster;37 private boolean willFoster; 38 38 39 39 @Column(name = "is_verified", nullable = false) 40 private Boolean verified;40 private boolean verified; 41 41 42 42 @Column(name = "verified_by_employee") -
Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/RegisterController.java
r50f2c2a r59a8941 42 42 @RequestParam String password, @RequestParam String repeatPassword, 43 43 @RequestParam String telephone,@RequestParam String role, 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) { 44 HttpServletRequest request) { 49 45 50 46 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")); 51 54 52 55 FreeTime ft = FreeTime.valueOf(freeTime); … … 61 64 } 62 65 else if(role.equals("employee") & password.equals(repeatPassword)){ 66 Integer shelter = Integer.valueOf(request.getParameter("shelter")); 67 String position = request.getParameter("position"); 63 68 64 69 Employee employeeUser = authService.registerEmployee(name, email, password, telephone,position,shelter);
Note:
See TracChangeset
for help on using the changeset viewer.