mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +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;
|
||||
|
||||
@Autowired
|
||||
PetController(OwnerService ownerService, PetService petService, PetTypeService petTypeService) {
|
||||
this.ownerService = ownerService;
|
||||
this.petService = petService;
|
||||
|
|
|
@ -54,7 +54,7 @@ public class PetDTO extends NamedDTO {
|
|||
this.type = type;
|
||||
}
|
||||
|
||||
public OwnerDTO getOwnerDTO() {
|
||||
public OwnerDTO getOwner() {
|
||||
return owner;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue