package sk.tuke.fei.tukevian.domain.village;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.persistence.OneToOne;
import sk.tuke.fei.tukevian.domain.player.Player;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Village {

    /**
     */
    @NotNull
    @Size(min = 3)
    private String name;

    /**
     */
    private Integer x;

    /**
     */
    private Integer y;

    /**
     */
    @OneToOne
    private Resources resources;

    /**
     */
    @OneToOne
    private Troops troops;

    /**
     */
    @OneToOne
    private Buildings buildings;

    /**
     */
    @OneToOne
    private Player owner;
}
