app deploys and runs - initial commit

This commit is contained in:
Keith Donald 2009-05-05 17:30:38 +00:00 committed by Mic
parent f09d67cc1c
commit 7ff5e857fd
3 changed files with 38 additions and 1 deletions

View file

@ -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";
}
}

View file

@ -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) {
}
}

View file

@ -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) {
}
}