package com.tymiller.service.impl;

import java.util.List;

import com.tymiller.model.Photo;
import com.tymiller.model.User;
import com.tymiller.service.PhotoService;

public class PhotoServiceImpl implements PhotoService {

	@Override
	public Photo save(Photo photo) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Photo> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Photo> findByUser(User user) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Photo findByPhotoId(Long photoId) {
		// TODO Auto-generated method stub
		return null;
	}

}

@@ -53,16 +53,127 @@
 .List;%0A%0A
+import org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Service;%0A%0A
 import c
@@ -272,16 +272,25 @@
 rvice;%0A%0A
+@Service%0A
 public c
@@ -344,422 +344,350 @@
 %0A%0A%09@
-Override%0A%09public Photo save(Photo photo) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public List%3CPhoto%3E findAll() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public List%3CPhoto%3E findByUser(User user) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public Photo findByPhotoId(Long photoId) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null
+Autowired%0A%09private PhotoDao photoDao;%0A%09%0A%09public Photo save(Photo photo) %7B%0A%09%09return photoDao.save(photo);%0A%09%7D%0A%0A%09public List%3CPhoto%3E findAll() %7B%0A%09%09return photoDao.findAll();%0A%09%7D%0A%0A%09public List%3CPhoto%3E findByUser(User user) %7B%0A%09%09return photoDao.findByUser(user);%0A%09%7D%0A%0A%09public Photo findByPhotoId(Long photoId) %7B%0A%09%09return photoDao.findByPhotoId(photoId)
 ;%0A%09%7D

update photo service impl to use photo dao