package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "StrukRacikan_T")
public class StrukRacikan extends BaseTransaction {

	@Caption(value="No Racikan")
	@Column(name = "NoRacikan", nullable = false , length = 10)
	private String noRacikan;
	
	@Caption(value="Tanggal Racikan")
	@Column(name = "TglRacikan", nullable = false )
	private Date tglRacikan;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "StrukOrderFk")
	@Caption(value="No Order")
	private StrukOrder strukOrder;

	@Column(name = "StrukOrderFk", insertable=false,updatable=false)
	private String noOrder;

	public String getNoRacikan() {
		return noRacikan;
	}

	public void setNoRacikan(String noRacikan) {
		this.noRacikan = noRacikan;
	}

	public Date getTglRacikan() {
		return tglRacikan;
	}

	public void setTglRacikan(Date tglRacikan) {
		this.tglRacikan = tglRacikan;
	}

	public StrukOrder getStrukOrder() {
		return strukOrder;
	}

	public void setStrukOrder(StrukOrder strukOrder) {
		this.strukOrder = strukOrder;
	}

	public String getNoOrder() {
		return noOrder;
	}

	public void setNoOrder(String noOrder) {
		this.noOrder = noOrder;
	}

}