package com.peetz.tradingcards.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@NamedQueries({
    @NamedQuery(name="SportCard.findAll", query="SELECT s from SportCardEntity as s")
})

@Entity
@Table(name = "SPORTCARD")
public class SportCardEntity {
	private Long id;
	private PlayerEntity player;
	private BaseSetEntity baseSet;
	private ParallelSetEntity parallelSet;
	private InsertEntity insert;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() { return id; }
	
	@SuppressWarnings("unused")
	private void setId(Long id) { this.id = id; }

	@ManyToOne
	public PlayerEntity getPlayer() {
		return player;
	}

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

	@ManyToOne
	public BaseSetEntity getBaseSet() {
		return baseSet;
	}

	public void setBaseSet(BaseSetEntity baseSet) {
		this.baseSet = baseSet;
	}

	@ManyToOne
	public ParallelSetEntity getParallelSet() {
		return parallelSet;
	}

	public void setParallelSet(ParallelSetEntity parallelSet) {
		this.parallelSet = parallelSet;
	}

	@ManyToOne
	public InsertEntity getInsert() {
		return insert;
	}

	public void setInsert(InsertEntity insert) {
		this.insert = insert;
	}

}
