package net.lankylord.potentialninja.storage;

import com.avaje.ebean.validation.Length;
import com.avaje.ebean.validation.NotEmpty;
import com.avaje.ebean.validation.NotNull;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Stijn on 10/29/2014.
 */
@Entity
@Table(name = "AuthorisedPlayers")
public class AuthorisedPlayers {

  @NotNull
  @Id
  private int id;

  @NotNull
  private int chestId;

  @NotEmpty
  @Length(max = 36)
  private String player;

  public int getId() {
    return id;
  }

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

  public String getPlayer() {
    return player;
  }

  public void setPlayer(String player) {
    this.player = player;
  }

  public int getChestId() {
    return chestId;
  }

  public void setChestId(int chestId) {
    this.chestId = chestId;
  }
}
