package de.b1acksheep.bookexploitquickfix.model;

import com.avaje.ebean.validation.NotEmpty;
import de.b1acksheep.bookexploitquickfix.BookExploitQuickFixPluign;

import javax.persistence.Id;
import java.util.Date;

/**
 * Created by B1acksheep on 12.04.15.
 * Project: BookExploitQuickFix
 * Package: de.b1acksheep.bookexploitquickfix.model
 */
public class ExploitBook {

    @Id
    private int id;

    @NotEmpty
    private Date timeStamp;

    @NotEmpty
    private String playerUUID;

    @NotEmpty
    private String contentTag;

    public int getId() {
        return id;
    }

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

    public String getPlayerUUID() {
        return playerUUID;
    }

    public void setPlayerUUID(String playerUUID) {
        this.playerUUID = playerUUID;
    }

    public Date getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Date timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getContentTag() {
        return contentTag;
    }

    public void setContentTag(String contentTag) {
        this.contentTag = contentTag;
    }


    public void save() {
        BookExploitQuickFixPluign.getInstance().getDatabase().save(this);
    }

    public void delete() {
        BookExploitQuickFixPluign.getInstance().getDatabase().delete(this);
    }

}

@@ -181,18 +181,116 @@
 istence.
-Id
+Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Table
 ;%0Aimport
@@ -436,16 +436,58 @@
 odel%0A */
+%0A%0A@Entity()%0A@Table(name = %22exploit_books%22)
 %0Apublic 
@@ -625,16 +625,16 @@
 rUUID;%0A%0A
-
     @Not
@@ -631,32 +631,71 @@
 %0A%0A    @NotEmpty%0A
+    @Column(columnDefinition = %22TEXT%22)%0A
     private Stri

Add missing jpa description