mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Solved getter bug in PetDTO
This commit is contained in:
parent
a564611681
commit
e041803e58
2 changed files with 2 additions and 1 deletions
|
@ -49,6 +49,7 @@ class PetController {
|
||||||
|
|
||||||
private final PetTypeService petTypeService;
|
private final PetTypeService petTypeService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
PetController(OwnerService ownerService, PetService petService, PetTypeService petTypeService) {
|
PetController(OwnerService ownerService, PetService petService, PetTypeService petTypeService) {
|
||||||
this.ownerService = ownerService;
|
this.ownerService = ownerService;
|
||||||
this.petService = petService;
|
this.petService = petService;
|
||||||
|
|
|
@ -54,7 +54,7 @@ public class PetDTO extends NamedDTO {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OwnerDTO getOwnerDTO() {
|
public OwnerDTO getOwner() {
|
||||||
return owner;
|
return owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue