package com.tymiller.service.impl;

import java.util.List;

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

import com.tymiller.dao.CommentDao;
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) {
		return commentDao.save(comment);
	}

	public List<Comment> findByPhotoId(Long photoId) {
		return commentDao.findOne(commentId);
	}

	public Comment findOne(Long commentId) {
		return commentDao.findByPhotoId(photoId);
	}

}

@@ -470,24 +470,25 @@
 omment);%0A%09%7D%0A
+%09
 %0A%09public Lis
@@ -488,46 +488,36 @@
 lic 
-List%3C
 Comment
-%3E
  find
-ByPhotoId(Long photo
+One(Long comment
 Id) 
@@ -574,36 +574,46 @@
 lic 
+List%3C
 Comment
+%3E
  find
-One(Long comment
+ByPhotoId(Long photo
 Id) 
@@ -662,10 +662,13 @@
 d);%0A%09%7D%0A%0A
+%09%0A%0A
 %7D%0A

correct methods