mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Removed whitespacing and formatting issues
Ran mvn spring-javaformat:apply as shown from github's build failure
This commit is contained in:
parent
0d24bc4813
commit
15801e7140
2 changed files with 2 additions and 4 deletions
|
@ -86,7 +86,6 @@ class OwnerController {
|
|||
return "owners/findOwners";
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/owners")
|
||||
public String processFindForm(@RequestParam(defaultValue = "1") int page, Owner owner, BindingResult result,
|
||||
Model model) {
|
||||
|
@ -99,7 +98,7 @@ class OwnerController {
|
|||
}
|
||||
|
||||
// empty owner search for all records without n+1 queries
|
||||
if (StringUtils.isEmpty(owner.getLastName())){
|
||||
if (StringUtils.isEmpty(owner.getLastName())) {
|
||||
List<Owner> ownerList = owners.findAllWithPetsAndVisits();
|
||||
Page<Owner> ownerPageNP1 = new PageImpl<>(ownerList);
|
||||
return addPaginationModel(0, model, ownerPageNP1);
|
||||
|
@ -128,7 +127,7 @@ class OwnerController {
|
|||
model.addAttribute("currentPage", page);
|
||||
model.addAttribute("totalPages", paginated.getTotalPages());
|
||||
model.addAttribute("totalItems", paginated.getTotalElements());
|
||||
model.addAttribute("listOwners",paginated);
|
||||
model.addAttribute("listOwners", paginated);
|
||||
return "owners/ownersList";
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,6 @@ public interface OwnerRepository extends Repository<Owner, Integer> {
|
|||
@Query("SELECT DISTINCT owner FROM Owner owner LEFT JOIN FETCH owner.pets LEFT JOIN FETCH pets.visits")
|
||||
List<Owner> findAllWithPetsAndVisits();
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve an {@link Owner} from the data store by id.
|
||||
* @param id the id to search for
|
||||
|
|
Loading…
Reference in a new issue