/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.crov.prase.model.prase;

import com.arrebol.taxiservicios.model.core.User;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 *
 * @author Crov
 */
@Entity
@Table(name = "incidence_third_party_vehicle")
public class IncidenceThirdPartyVehicle implements Serializable {

    private static final long serialVersionUID = -6653037938225719593L;

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    @Column(name = "id", length = 36)
    private String id;

    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    @JoinColumn(
            name = "id_incidence",
            referencedColumnName = "id",
            nullable = false
    )
    private Incidence incidence;

    @Column(name = "nombre_propietario", nullable = true)
    private String nombrePropietario;

    @Column(name = "nombre_conductor", nullable = true)
    private String nombreConductor;

    @Column(name = "direccion_1", nullable = true)
    private String direccion1;

    @Column(name = "telefono_1", nullable = true)
    private String telefono1;

    @Column(name = "direccion_2", nullable = true)
    private String direccion2;

    @Column(name = "telefono_2", nullable = true)
    private String telefono2;

    @Column(name = "numero_licencia", nullable = true)
    private String numeroLicencia;

    @Column(name = "vehiculo_marca_tipo", nullable = true)
    private String vehiculoMarcaTipo;

    @Column(name = "modelo", nullable = true)
    private String modelo;

    @Column(name = "color", nullable = true)
    private String color;

    @Column(name = "placas", nullable = true)
    private String placas;

    @Column(name = "serie", nullable = true)
    private String serie;

    @Column(name = "cia_seguros", nullable = true)
    private String ciaSeguros;

    @Column(name = "poliza", nullable = true)
    private String poliza;

    @Column(name = "cobertura", nullable = true)
    private String cobertura;

    @Column(name = "deducible", nullable = true)
    private String deducible;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "vencimiento", length = 19)
    private Date vencimiento;

    @Column(name = "siniestro", nullable = true)
    private String siniestro;

    @Column(name = "ajustador", nullable = true)
    private String ajustador;

    @Column(name = "datos_vehiculo_tercero", nullable = true)
    private String datosVehiculoTercero;

    @Column(name = "img_credencial", nullable = true)
    private String imgCredencial;

    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    @JoinColumn(
            name = "created_by",
            referencedColumnName = "id",
            nullable = false
    )
    private User createdBy;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "created_on", length = 19)
    private Date createdOn;

    @ManyToOne(fetch = FetchType.LAZY, optional = true)
    @JoinColumn(
            name = "last_updated_by",
            referencedColumnName = "id",
            nullable = true
    )
    private User lastUpdatedBy;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "last_updated_on", length = 19, nullable = true)
    private Date lastUpdatedOn;

    public IncidenceThirdPartyVehicle() {
    }

    public IncidenceThirdPartyVehicle(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Incidence getIncidence() {
        return incidence;
    }

    public void setIncidence(Incidence incidence) {
        this.incidence = incidence;
    }

    public String getNombrePropietario() {
        return nombrePropietario;
    }

    public void setNombrePropietario(String nombrePropietario) {
        this.nombrePropietario = nombrePropietario;
    }

    public String getNombreConductor() {
        return nombreConductor;
    }

    public void setNombreConductor(String nombreConductor) {
        this.nombreConductor = nombreConductor;
    }

    public String getDireccion1() {
        return direccion1;
    }

    public void setDireccion1(String direccion1) {
        this.direccion1 = direccion1;
    }

    public String getTelefono1() {
        return telefono1;
    }

    public void setTelefono1(String telefono1) {
        this.telefono1 = telefono1;
    }

    public String getDireccion2() {
        return direccion2;
    }

    public void setDireccion2(String direccion2) {
        this.direccion2 = direccion2;
    }

    public String getTelefono2() {
        return telefono2;
    }

    public void setTelefono2(String telefono2) {
        this.telefono2 = telefono2;
    }

    public String getNumeroLicencia() {
        return numeroLicencia;
    }

    public void setNumeroLicencia(String numeroLicencia) {
        this.numeroLicencia = numeroLicencia;
    }

    public String getVehiculoMarcaTipo() {
        return vehiculoMarcaTipo;
    }

    public void setVehiculoMarcaTipo(String vehiculoMarcaTipo) {
        this.vehiculoMarcaTipo = vehiculoMarcaTipo;
    }

    public String getModelo() {
        return modelo;
    }

    public void setModelo(String modelo) {
        this.modelo = modelo;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getPlacas() {
        return placas;
    }

    public void setPlacas(String placas) {
        this.placas = placas;
    }

    public String getSerie() {
        return serie;
    }

    public void setSerie(String serie) {
        this.serie = serie;
    }

    public String getCiaSeguros() {
        return ciaSeguros;
    }

    public void setCiaSeguros(String ciaSeguros) {
        this.ciaSeguros = ciaSeguros;
    }

    public String getPoliza() {
        return poliza;
    }

    public void setPoliza(String poliza) {
        this.poliza = poliza;
    }

    public String getCobertura() {
        return cobertura;
    }

    public void setCobertura(String cobertura) {
        this.cobertura = cobertura;
    }

    public String getDeducible() {
        return deducible;
    }

    public void setDeducible(String deducible) {
        this.deducible = deducible;
    }

    public Date getVencimiento() {
        return vencimiento;
    }

    public void setVencimiento(Date vencimiento) {
        this.vencimiento = vencimiento;
    }

    public String getSiniestro() {
        return siniestro;
    }

    public void setSiniestro(String siniestro) {
        this.siniestro = siniestro;
    }

    public String getAjustador() {
        return ajustador;
    }

    public void setAjustador(String ajustador) {
        this.ajustador = ajustador;
    }

    public String getDatosVehiculoTercero() {
        return datosVehiculoTercero;
    }

    public void setDatosVehiculoTercero(String datosVehiculoTercero) {
        this.datosVehiculoTercero = datosVehiculoTercero;
    }

    public User getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(User createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public User getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(User lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedOn() {
        return lastUpdatedOn;
    }

    public void setLastUpdatedOn(Date lastUpdatedOn) {
        this.lastUpdatedOn = lastUpdatedOn;
    }

    public String getImgCredencial() {
        return imgCredencial;
    }

    public void setImgCredencial(String imgCredencial) {
        this.imgCredencial = imgCredencial;
    }

}
