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;

/**
 * Fichaejecucion generated by UDA, 13-may-2015 16:26:15.
 * 
 * @author UDA
 */

public class Fichaejecucion implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	// Clave compuesta
	private Integer idficeje;
	private Integer idfitec;
	private Date feini;
	private Date fefin;

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

	/**
	 * Method 'Fichaejecucion'.
	 * 
	 * @param idficeje
	 *            Integer
	 * @param idfitec
	 *            Integer
	 * @param feini
	 *            Date
	 * @param fefin
	 *            Date
	 */
	public Fichaejecucion(Integer idficeje, Integer idfitec, Date feini,
			Date fefin) {

		this.idficeje = idficeje;
		this.idfitec = idfitec;
		this.feini = feini;
		this.fefin = fefin;
	}

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

	public Integer getIdficeje() {
		return this.idficeje;
	}

	/**
	 * Method 'setIdficeje'.
	 * 
	 * @param idficeje
	 *            Integer
	 * @return
	 */

	public void setIdficeje(Integer idficeje) {
		this.idficeje = idficeje;
	}

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

	public Integer getIdfitec() {
		return this.idfitec;
	}

	/**
	 * Method 'setIdfitec'.
	 * 
	 * @param idfitec
	 *            Integer
	 * @return
	 */

	public void setIdfitec(Integer idfitec) {
		this.idfitec = idfitec;
	}

	/**
	 * 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 { ");
		// Clave compuesta

		result.append("[ idficeje: ").append(this.idficeje).append(" ]");
		result.append(", [ idfitec: ").append(this.idfitec).append(" ]");

		result.append(", [ feini: ").append(this.feini).append(" ]");

		result.append(", [ fefin: ").append(this.fefin).append(" ]");
		result.append("}");
		return result.toString();
	}

}
