package com.tymiller.model;

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

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

	@ManyToOne
	private Photo photo;
}

@@ -203,16 +203,69 @@
 ToOne;%0A%0A
+import com.fasterxml.jackson.annotation.JsonIgnore;%0A%0A
 @Entity%0A
@@ -406,16 +406,29 @@
 nyToOne%0A
+%09@JsonIgnore%0A
 %09private

set photo field to be ignored in JSON