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);
    }

}

package de.b1acksheep.bookexploitquickfix.model;

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

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

@Entity()
@Table(name = "exploit_books")
public class ExploitBook {

    @Id
    private int id;

    @NotEmpty
    private Date timeStamp;

    @NotEmpty
    private String playerUUID;

    @NotEmpty
    @Column(columnDefinition = "TEXT")
    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);
    }

}

Add missing jpa description