package com.tymiller.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import com.fasterxml.jackson.annotation.JsonIgnore;

@Entity
public class Comment {
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long commentId;
	private String content;

	@ManyToOne
	@JsonIgnore
	private Photo photo;
	private Long photoId;
	private String userName;
	
}

@@ -490,12 +490,620 @@
 erName;%0A
+%09public Long getCommentId() %7B%0A%09%09return commentId;%0A%09%7D%0A%09public void setCommentId(Long commentId) %7B%0A%09%09this.commentId = commentId;%0A%09%7D%0A%09public String getContent() %7B%0A%09%09return content;%0A%09%7D%0A%09public void setContent(String content) %7B%0A%09%09this.content = content;%0A%09%7D%0A%09public Photo getPhoto() %7B%0A%09%09return photo;%0A%09%7D%0A%09public void setPhoto(Photo photo) %7B%0A%09%09this.photo = photo;%0A%09%7D%0A%09public Long getPhotoId() %7B%0A%09%09return photoId;%0A%09%7D%0A%09public void setPhotoId(Long photoId) %7B%0A%09%09this.photoId = photoId;%0A%09%7D%0A%09public String getUserName() %7B%0A%09%09return userName;%0A%09%7D%0A%09public void setUserName(String userName) %7B%0A%09%09this.userName = userName;%0A%09%7D%0A%09%0A
 %09%0A%7D%0A

add getters and setters for comment fields