package com.tymiller.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tymiller.model.Comment;
import com.tymiller.service.CommentService;

@Service
public class CommentServiceImpl implements CommentService {

	@Autowired
	private CommentDao commentDao;
	
	public Comment save(Comment comment) {
		// TODO Auto-generated method stub
		return null;
	}

	public List<Comment> findByPhotoId(Long photoId) {
		// TODO Auto-generated method stub
		return null;
	}

	public Comment findOne(Long commentId) {
		// TODO Auto-generated method stub
		return null;
	}

}

@@ -406,56 +406,39 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub%0A%09%09return null
+return commentDao.save(comment)
 ;%0A%09%7D
@@ -497,56 +497,44 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub%0A%09%09return null
+return commentDao.findOne(commentId)
 ;%0A%09%7D
@@ -583,56 +583,48 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub%0A%09%09return null
+return commentDao.findByPhotoId(photoId)
 ;%0A%09%7D

implement save, findone, and findByPhotoId methods