Solved getter bug in PetDTO

This commit is contained in:
PEDSF 2020-10-10 17:44:38 +02:00
parent a564611681
commit e041803e58
2 changed files with 2 additions and 1 deletions

View file

@ -49,6 +49,7 @@ class PetController {
private final PetTypeService petTypeService;
@Autowired
PetController(OwnerService ownerService, PetService petService, PetTypeService petTypeService) {
this.ownerService = ownerService;
this.petService = petService;

View file

@ -54,7 +54,7 @@ public class PetDTO extends NamedDTO {
this.type = type;
}
public OwnerDTO getOwnerDTO() {
public OwnerDTO getOwner() {
return owner;
}