package com.peetz.comics.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="VOLUME")
public class VolumeEntity {
    
    private Long id;
    
    private String title;

    ComicEntity comic;

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

    @Column
    public String getTitle() { return title; }

    public void setTitle(String title) { this.title = title; }

    @ManyToOne
    public ComicEntity getComic() { return comic; }

    public void setComic(ComicEntity comic) { this.comic = comic; }
}
