package com.peetz.medien.entity;

import java.util.Collection;

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

@NamedQueries({
    @NamedQuery(name="AudioCD.findAll", query="SELECT c from AudioCDEntity as c"),
    @NamedQuery(name="AudioCD.findByAlbum", query="SELECT c from AudioCDEntity as c WHERE c.album = :album")
})

@Entity
@Table(name="AUDIOCD")
public class AudioCDEntity
{
	private Long id;
	private String album;
	private String artist;
	private String category;
	private String releaseYear;
	private Boolean wantList;
	private Collection<String> songs;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() { return id; }
	
	@SuppressWarnings("unused")
	private void setId(Long id) { this.id = id; }

	@Column
	public String getAlbum() {
		return album;
	}

	public void setAlbum(String album) {
		this.album = album;
	}

	@Column
	public String getArtist() {
		return artist;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	@Column
	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Column
	public String getReleaseYear() {
		return releaseYear;
	}

	public void setReleaseYear(String releaseYear) {
		this.releaseYear = releaseYear;
	}

	@Column
	public Boolean getWantList() {
		return wantList;
	}

	public void setWantList(Boolean wantList) {
		this.wantList = wantList;
	}

	@Column
	public Collection<String> getSongs() {
		return songs;
	}

	public void setSongs(Collection<String> songs) {
		this.songs = songs;
	}
}
