Merged OwnerListResource and OwnerResource
Realised that @ModelAttribute annotated methods are not suitable because they can’t be used in 2 cases: - when I’m using a list of Owners - when I’m creating a new Owner So we’re just calling the “retrieveOwner” method manually
Showing
- src/main/java/org/springframework/samples/petclinic/web/OwnerListResource.java 0 additions, 63 deletions...ingframework/samples/petclinic/web/OwnerListResource.java
- src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java 26 additions, 8 deletions.../springframework/samples/petclinic/web/OwnerResource.java
- src/main/webapp/scripts/app/owner/OwnerController.js 1 addition, 1 deletionsrc/main/webapp/scripts/app/owner/OwnerController.js
- src/main/webapp/scripts/app/owner/ownerSearchForm.html 3 additions, 3 deletionssrc/main/webapp/scripts/app/owner/ownerSearchForm.html
Loading
Please register or sign in to comment