package com.ejie.aa20b.model;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.ejie.x38.serialization.JsonDateTimeDeserializer;
import com.ejie.x38.serialization.JsonDateTimeSerializer;

/**
 * Parteejecucion generated by UDA, 22-ene-2015 12:41:36.
 * 
 * @author UDA
 */

public class Parteejecucion implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer idpareje;
	private Integer idpartec;
	private Date feini;
	private Date fefin;

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

	/**
	 * Method 'Parteejecucion'.
	 * 
	 * @param idpartec
	 *            Integer
	 * @param feini
	 *            Date
	 * @param fefin
	 *            Date
	 */
	public Parteejecucion(Integer idpareje, Integer idpartec, Date feini,
			Date fefin) {

		this.idpareje = idpareje;
		this.idpartec = idpartec;
		this.feini = feini;
		this.fefin = fefin;
	}

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

	public Integer getIdpareje() {
		return this.idpareje;
	}

	/**
	 * Method 'setIdpareje'.
	 * 
	 * @param idpareje
	 *            Integer
	 * @return
	 */

	public void setIdpareje(Integer idpareje) {
		this.idpareje = idpareje;
	}

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

	public Integer getIdpartec() {
		return this.idpartec;
	}

	/**
	 * Method 'setIdpartec'.
	 * 
	 * @param idpartec
	 *            Integer
	 * @return
	 */

	public void setIdpartec(Integer idpartec) {
		this.idpartec = idpartec;
	}

	/**
	 * Method 'getFeini'.
	 * 
	 * @return Date
	 */

	@JsonSerialize(using = JsonDateTimeSerializer.class)
	public Date getFeini() {
		return this.feini;
	}

	/**
	 * Method 'setFeini'.
	 * 
	 * @param feini
	 *            Date
	 * @return
	 */
	@JsonDeserialize(using = JsonDateTimeDeserializer.class)
	public void setFeini(Date feini) {
		this.feini = feini;
	}

	/**
	 * Method 'getFefin'.
	 * 
	 * @return Date
	 */

	@JsonSerialize(using = JsonDateTimeSerializer.class)
	public Date getFefin() {
		return this.fefin;
	}

	/**
	 * Method 'setFefin'.
	 * 
	 * @param fefin
	 *            Date
	 * @return
	 */
	@JsonDeserialize(using = JsonDateTimeDeserializer.class)
	public void setFefin(Date fefin) {
		this.fefin = fefin;
	}

	/**
	 * 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(" [ idpareje: ").append(this.idpareje).append(" ]");
		result.append(" [ idpartec: ").append(this.idpartec).append(" ]");
		result.append(", [ feini: ").append(this.feini).append(" ]");
		result.append(", [ fefin: ").append(this.fefin).append(" ]");
		result.append("}");
		return result.toString();
	}

}
