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 bid_reserve_time database table.
 * 
 */
@Entity
@Table(name="bid_reserve_time")
public class BidReserveTime implements Serializable {
	private static final long serialVersionUID = 1L;

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

	@Column(name="bid", nullable=false)
	private double bid;

	//bi-directional many-to-one association to ReserveTime
	@ManyToOne
	@JoinColumn(name="reserve_time_id", nullable=false)
	private ReserveTime reserveTime;

	public BidReserveTime() {
	}

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

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

	public double getBid() {
		return this.bid;
	}

	public void setBid(double bid) {
		this.bid = bid;
	}

	public ReserveTime getReserveTime() {
		return this.reserveTime;
	}

	public void setReserveTime(ReserveTime reserveTime) {
		this.reserveTime = reserveTime;
	}

}