package com.example.beer.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: Comment
 *
 */
@Entity
public class Comment implements Serializable {

	private static final long serialVersionUID = 1L;

	private String title;
	
	@Column(length=500)
	private String content;
	
	@Temporal(TemporalType.DATE)
	private Date date;
	
	private User author;
	
	public Comment() {
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public User getAuthor() {
		return author;
	}

	public void setAuthor(User author) {
		this.author = author;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
   
}

@@ -276,16 +276,90 @@
 D = 1L;%0A
+%09%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.AUTO)%0A%09private int id;%0A%09
 %0A%09privat

Add Id for model Comments