package com.peetz.library.entity;

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="SHELFOBJECT")
public class ShelfObjectEntity {
	private Long id;
	
	private ShelfboardEntity shelfboard;

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

	@ManyToOne
	public ShelfboardEntity getShelfboard() {
		return shelfboard;
	}

	public void setShelfboard(ShelfboardEntity shelfboard) {
		this.shelfboard = shelfboard;
	}
}
