package com.ibtp.kontor.tradingcards.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="PARALLELSET")
public class ParallelSetEntity {
    private Long id;
    private String name;
    private ManufacturerEntity manufacturer;

    private BaseSetEntity baseSet;

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

    @Column
    public String getName() {
        return name;
    }
    
    @ManyToOne
    public ManufacturerEntity getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(ManufacturerEntity manufacturer) {
        this.manufacturer = manufacturer;
    }

    public void setName(String name) {
        this.name = name;
    }

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

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