@@ -0,0 +1,434 @@
+package com.tymiller.dao;%0A%0Aimport java.util.List;%0A%0Aimport org.springframework.data.repository.CrudRepository;%0Aimport org.springframework.stereotype.Repository;%0A%0Aimport com.tymiller.model.Photo;%0Aimport com.tymiller.model.User;%0A%0A@Repository%0Apublic interface PhotoDao extends CrudRepository%3CPhoto, Long%3E %7B%0A%09Photo save(Photo photo);%0A%09%0A%09List%3CPhoto%3E findByUser(User user);%0A%09%0A%09List%3CPhoto%3E findAll();%0A%09%0A%09Photo findByPhotoId(Long photoId);%0A%0A%7D%0A

set up photo dao