package com.ejie.m62fb.model;

import com.ejie.x38.serialization.JsonDateDeserializer;
import com.ejie.x38.serialization.JsonDateSerializer;

import java.math.BigDecimal;
import java.util.Date;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * M62fbr46s0s00 generated by UDA, 17-oct-2012 15:03:37.
 * 
XXXX
 */

public class M62fbr46s0s00 implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	// Clave compuesta
	private BigDecimal idM62r46t0;
	private BigDecimal idM62r45t0;
	private BigDecimal numVivienda;
	private Date fehUltModif;
	private String codUsuUltModif;
	private Integer ideRegistro;
	private Date fecAlta;

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

	/**
	 * Method 'M62fbr46s0s00'.
	 * 
	 * @param idM62r46t0
	 *            Integer
	 * @param idM62r45t0
	 *            Integer
	 * @param numVivienda
	 *            Integer
	 * @param fehUltModif
	 *            Date
	 * @param codUsuUltModif
	 *            String
	 * @param ideRegistro
	 *            Integer
	 * @param fecAlta
	 *            Date
	 */
	public M62fbr46s0s00(BigDecimal idM62r46t0, BigDecimal idM62r45t0,
			BigDecimal numVivienda, Date fehUltModif, String codUsuUltModif,
			Integer ideRegistro, Date fecAlta) {

		this.idM62r46t0 = idM62r46t0;
		this.idM62r45t0 = idM62r45t0;
		this.numVivienda = numVivienda;
		this.fehUltModif = fehUltModif;
		this.codUsuUltModif = codUsuUltModif;
		this.ideRegistro = ideRegistro;
		this.fecAlta = fecAlta;
	}

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

	public BigDecimal getIdM62r46t0() {
		return this.idM62r46t0;
	}

	/**
	 * Method 'setIdM62r46t0'.
	 * 
	 * @param idM62r46t0
	 *            Integer
	 * @return
	 */

	public void setIdM62r46t0(BigDecimal idM62r46t0) {
		this.idM62r46t0 = idM62r46t0;
	}

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

	public BigDecimal getIdM62r45t0() {
		return this.idM62r45t0;
	}

	/**
	 * Method 'setIdM62r45t0'.
	 * 
	 * @param idM62r45t0
	 *            Integer
	 * @return
	 */

	public void setIdM62r45t0(BigDecimal idM62r45t0) {
		this.idM62r45t0 = idM62r45t0;
	}

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

	public BigDecimal getNumVivienda() {
		return this.numVivienda;
	}

	/**
	 * Method 'setNumVivienda'.
	 * 
	 * @param numVivienda
	 *            Integer
	 * @return
	 */

	public void setNumVivienda(BigDecimal numVivienda) {
		this.numVivienda = numVivienda;
	}

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

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getFehUltModif() {
		return this.fehUltModif;
	}

	/**
	 * Method 'setFehUltModif'.
	 * 
	 * @param fehUltModif
	 *            Date
	 * @return
	 */
	@JsonDeserialize(using = JsonDateDeserializer.class)
	public void setFehUltModif(Date fehUltModif) {
		this.fehUltModif = fehUltModif;
	}

	/**
	 * Method 'getCodUsuUltModif'.
	 * 
	 * @return String
	 */

	public String getCodUsuUltModif() {
		return this.codUsuUltModif;
	}

	/**
	 * Method 'setCodUsuUltModif'.
	 * 
	 * @param codUsuUltModif
	 *            String
	 * @return
	 */

	public void setCodUsuUltModif(String codUsuUltModif) {
		this.codUsuUltModif = codUsuUltModif;
	}

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

	public Integer getIdeRegistro() {
		return this.ideRegistro;
	}

	/**
	 * Method 'setIdeRegistro'.
	 * 
	 * @param ideRegistro
	 *            Integer
	 * @return
	 */

	public void setIdeRegistro(Integer ideRegistro) {
		this.ideRegistro = ideRegistro;
	}

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

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getFecAlta() {
		return this.fecAlta;
	}

	/**
	 * Method 'setFecAlta'.
	 * 
	 * @param fecAlta
	 *            Date
	 * @return
	 */
	@JsonDeserialize(using = JsonDateDeserializer.class)
	public void setFecAlta(Date fecAlta) {
		this.fecAlta = fecAlta;
	}

	/**
	 * 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("[ idM62r46t0: ").append(this.idM62r46t0).append(" ]");

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

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

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

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

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

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

}
