/*
 * This file is part of DebGen Biobank Software developed by ASTRID Research.
 * All rights reserved. Reproduction, modification, use or disclosure
 * to third parties without express authority is forbidden.
 *
 * Copyright ASTRID Research Inc., Hungary, 2009-2011.
 *
 * ASTRID Research
 * Headquaters: Csapo utca 42. Debrecen H-4029 HUNGARY
 * Phone: +36-52-533-173        Fax: +36-52-533-174
 * Web: http://www.astrid.hu    E-mail: info@astrid.hu
 *
 * Project name: DebGen Biobank Software project.
 * URLS:
 * Developers: Istvan Zoltan Nagy (istvan.nagy@astrid.hu)
 */

package hu.astrid.debgen.patientmanagement.domain.modules;

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.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import hu.astrid.toucan.control.bean.ToucanBean;

/**
 * 
 * @author inagy
 *
 */
@Entity
@Table(name = "debgen_kariograms")
public class Kariogram implements ToucanBean, Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "KARIOGRAM_ID")
	private Long id;
	
	@ManyToOne()
	@JoinColumn(name = "RESULT_FK", referencedColumnName = "id")
	private Result result;
	
	@Lob
	@Column(name = "KARIOGRAM_IMAGE")
	private byte[] kariogramImage;
	

	public byte[] getKariogramImage() {
		return kariogramImage;
	}

	public void setKariogramImage(byte[] kariogramImage) {
		this.kariogramImage = kariogramImage;
	}

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

	public Result getResult() {
		return result;
	}

	public void setResult(Result result) {
		this.result = result;
	}

	@Override
	public Long getId() {
		return id;
	}

}
