package com.ejie.aa20b.model;

import java.sql.Blob;
import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * Partepdf generated by UDA, 13-ene-2015 13:00:39.
 * 
 * @author UDA
 */

public class Partepdf implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer idparte;
	private Blob pdf;

	/**
	 * Method 'Partepdf'.
	 */
	public Partepdf() {
	}

	/**
	 * Method 'Partepdf'.
	 * 
	 * @param idparte
	 *            Integer
	 * @param dibujo
	 *            Blob
	 */
	public Partepdf(Integer idparte, Blob pdf) {

		this.idparte = idparte;
		this.pdf = pdf;
	}

	/**
	 * Method 'getIdparte'.
	 * 
	 * @return Integer
	 */

	public Integer getIdparte() {
		return this.idparte;
	}

	/**
	 * Method 'setIdparte'.
	 * 
	 * @param idparte
	 *            Integer
	 * @return
	 */

	public void setIdparte(Integer idparte) {
		this.idparte = idparte;
	}

	/**
	 * Method 'getDibujo'.
	 * 
	 * @return Blob
	 */
	@JsonIgnore
	public Blob getPdf() {
		return this.pdf;
	}

	/**
	 * Method 'setDibujo'.
	 * 
	 * @param dibujo
	 *            Blob
	 * @return
	 */

	public void setPdf(Blob pdf) {
		this.pdf = pdf;
	}

	/**
	 * Intended only for logging and debugging.
	 * 
	 * Here, the contents of every main field are placed into the result.
	 * 
	 * @return String
	 */
	@Override
	public String toString() {
		StringBuilder result = new StringBuilder();
		result.append(this.getClass().getName()).append(" Object { ");
		result.append(" [ idparte: ").append(this.idparte).append(" ]");
		result.append("}");
		return result.toString();
	}

}
