diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/HomeController.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/HomeController.java index b11f02cec6bdd3b496545a90da00886312f994de..72d36e8a04dd9c79c6ed45e324e81e4cb3a87cc7 100644 --- a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/HomeController.java +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/HomeController.java @@ -8,7 +8,8 @@ import org.springframework.web.bind.annotation.RequestMethod; public class HomeController { @RequestMapping(value="/", method = RequestMethod.GET) - public void getHome() { + public String getHome() { + return "home"; } } diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/owner/StubOwnerRepository.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/owner/StubOwnerRepository.java new file mode 100644 index 0000000000000000000000000000000000000000..b9da84907b8e405a487e04d301c8c57fca165216 --- /dev/null +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/owner/StubOwnerRepository.java @@ -0,0 +1,21 @@ +package org.springframework.samples.petclinic.owner; + +import java.util.Collection; + +import org.springframework.stereotype.Repository; + +@Repository +public class StubOwnerRepository implements OwnerRepository { + + public Collection<Owner> findOwnersByLastName(String lastName) { + return null; + } + + public Owner getOwner(Long id) { + return null; + } + + public void saveOwner(Owner owner) { + } + +} diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/pet/StubPetRepository.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/pet/StubPetRepository.java new file mode 100644 index 0000000000000000000000000000000000000000..1c0e731a5c304c8be932e3315a4ca46cd78237a3 --- /dev/null +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/pet/StubPetRepository.java @@ -0,0 +1,15 @@ +package org.springframework.samples.petclinic.pet; + +import org.springframework.stereotype.Repository; + +@Repository +public class StubPetRepository implements PetRepository { + + public Pet getPet(Long owner, String name) { + return null; + } + + public void savePet(Pet pet) { + } + +}