package com.rjconsultores.ventaboletos.entidad;

// Generated 10/01/2012 11:38:41 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.Basic;
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.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TramoKm generated by hbm2java
 */
@Entity
@SequenceGenerator(name = "TRAMO_KM_SEQ", sequenceName = "TRAMO_KM_SEQ", allocationSize = 1)
@Table(name = "TRAMO_KM")
public class TramoKm implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "TRAMOKM_ID")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "TRAMO_KM_SEQ")
	@Basic(optional = false)
	private int tramokmId;
	@ManyToOne
	@JoinColumn(name = "EMPRESA_ID")
	private Empresa empresa;
	@ManyToOne
	@JoinColumn(name = "TRAMO_ID")
	private Tramo tramo;
	@Column(name = "CANTKMPAGOCONDUCTOR")
	private Integer cantkmpagoconductor;
	@Column(name = "ACTIVO")
	private Boolean activo;
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FECMODIF")
	private Date fecmodif;
	@Column(name = "USUARIO_ID")
	private Integer usuarioId;

	public TramoKm() {
	}

	public TramoKm(int tramokmId) {
		this.tramokmId = tramokmId;
	}

	public int getTramokmId() {
		return this.tramokmId;
	}

	public void setTramokmId(int tramokmId) {
		this.tramokmId = tramokmId;
	}

	public Integer getCantkmpagoconductor() {
		return this.cantkmpagoconductor;
	}

	public void setCantkmpagoconductor(Integer cantkmpagoconductor) {
		this.cantkmpagoconductor = cantkmpagoconductor;
	}

	public Boolean getActivo() {
		return this.activo;
	}

	public void setActivo(Boolean activo) {
		this.activo = activo;
	}

	public Date getFecmodif() {
		return this.fecmodif;
	}

	public void setFecmodif(Date fecmodif) {
		this.fecmodif = fecmodif;
	}

	public Integer getUsuarioId() {
		return this.usuarioId;
	}

	public void setUsuarioId(Integer usuarioId) {
		this.usuarioId = usuarioId;
	}

	public Empresa getEmpresa() {
		return empresa;
	}

	public void setEmpresa(Empresa empresa) {
		this.empresa = empresa;
	}

	public Tramo getTramo() {
		return tramo;
	}

	public void setTramo(Tramo tramo) {
		this.tramo = tramo;
	}
}
