package foo.bar.entity;

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

import foo.bar.core.entity.AbstractEntity;

/**
 * Simple data container class.
 */
@Entity
public class Comment extends AbstractEntity<Long> {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String author;
    private String content;

    public Comment() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAuthor() {
        return author;
    }

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

    public String getContent() {
        return content;
    }

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

    @Override
    public String toString() {
        return "Comment [id=" + id + ", author=" + author + ", content=" + content + "]";
    }

}

package foo.bar.entity;

import javax.persistence.Entity;

import foo.bar.core.entity.AbstractEntity;

/**
 * Simple data container class.
 */
@Entity
public class Comment extends AbstractEntity<Long> {

    private String author;
    private String content;

    public Comment() {
        super();
    }

    public String getAuthor() {
        return author;
    }

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

    public String getContent() {
        return content;
    }

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

    @Override
    public String toString() {
        return "Comment [id=" + this.getId() + ", author=" + author + ", content=" + content + "]";
    }

}

Fix comment entity