package com.pas.model;

import java.io.Serializable;

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

/**
 * The persistent class for the parking_place_image database table.
 * 
 */
@Entity
@Table(name="parking_place_image")
public class ParkingPlaceImage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private Integer id;

	@Column(name="description")
	private String description;

	@Column(name="image", nullable=false)
	private byte[] image;

	@Column(name="name", length=150)
	private String name;

	//bi-directional many-to-one association to ParkingPlace
	@ManyToOne
	@JoinColumn(name="parking_place_id", nullable=false)
	private ParkingPlace parkingPlace;

	public ParkingPlaceImage() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public byte[] getImage() {
		return this.image;
	}

	public void setImage(byte[] image) {
		this.image = image;
	}

	public String getName() {
		return this.name;
	}

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

	public ParkingPlace getParkingPlace() {
		return this.parkingPlace;
	}

	public void setParkingPlace(ParkingPlace parkingPlace) {
		this.parkingPlace = parkingPlace;
	}

}