Changeset 3e59177 for Prototype Application/Paw5/src/main
- Timestamp:
- 03/03/23 22:21:35 (20 months ago)
- Branches:
- main
- Children:
- 8f1a362
- Parents:
- b00d81b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/PostController.java
rb00d81b r3e59177 48 48 HttpServletRequest request) { 49 49 50 Employee employee = (Employee) request.getSession().getAttribute(" employee");50 Employee employee = (Employee) request.getSession().getAttribute("user"); 51 51 52 52 Pet pet = new Pet(imageUrl, AgeGroup.valueOf(ageGroup), Size.valueOf(size), breed, name, Species.valueOf(species), Gender.valueOf(gender), canBeFostered, null, employee.getShelterId()); 53 53 this.petService.save(pet); 54 54 55 Post post = new Post(LocalDate.now(), imageUrl, pet.getId() , null, employee.getId());55 Post post = new Post(LocalDate.now(), imageUrl, pet.getId(), null, employee.getId()); 56 56 this.postService.save(post); 57 57
Note:
See TracChangeset
for help on using the changeset viewer.