Skip to content
Snippets Groups Projects
Commit c8915d2b authored by fakanpeter's avatar fakanpeter
Browse files

Fix: Dog pictures AGAIN

parent 81d19d06
No related merge requests found
......@@ -7,6 +7,10 @@ public class DetailedDogDTO extends DogDTO{
this.breed = breed;
}
public DetailedDogDTO() {
}
private Integer age;
private String breed;
......
......@@ -11,6 +11,10 @@ public class DogDTO {
this.picture = picture;
}
public DogDTO(){
}
public Integer getId() {
return id;
}
......
......@@ -6,7 +6,6 @@ import hu.pazmany.jpe.DogEntity;
import hu.pazmany.jpe.DogRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
......@@ -45,7 +44,7 @@ public class DogService {
dogRepository.save(newDog);
}
public void editDog(Integer id,DetailedDogDTO editRequest, MultipartFile mpf) throws IOException {
public void editDog(Integer id, DetailedDogDTO editRequest, MultipartFile mpf) throws IOException {
Optional<DogEntity> optionalDog = dogRepository.findById(id);
if (optionalDog.isPresent()) {
DogEntity dogEntity = optionalDog.get();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment