package com.tymiller.model;

import javax.persistence.Entity;

@Entity
public class Photo {

}

@@ -59,37 +59,225 @@
 ty;%0A
-%0A@Entity%0Apublic class Photo %7B%0A
+import javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0A%0A@Entity%0Apublic class Photo %7B%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.AUTO)%0A%09private Long photoId;
 %0A%7D%0A

add id field and generate id automatically