first commit
This commit is contained in:
commit
250ee150ad
|
|
@ -0,0 +1 @@
|
||||||
|
/target/
|
||||||
|
|
@ -0,0 +1,84 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>com.qsoft</groupId>
|
||||||
|
<artifactId>werp-model</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-api</artifactId>
|
||||||
|
<version>2.11.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-core</artifactId>
|
||||||
|
<version>2.11.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>8.0.18</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.eclipse.persistence</groupId>
|
||||||
|
<artifactId>org.eclipse.persistence.jpa</artifactId>
|
||||||
|
<version>2.7.6</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.eclipse.persistence</groupId>
|
||||||
|
<artifactId>eclipselink</artifactId>
|
||||||
|
<version>2.7.6</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.xml.bind</groupId>
|
||||||
|
<artifactId>jaxb-api</artifactId>
|
||||||
|
<version>2.3.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- <dependency>
|
||||||
|
<groupId>org.hibernate</groupId>
|
||||||
|
<artifactId>hibernate-core</artifactId>
|
||||||
|
<version>5.4.10.Final</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.hibernate.javax.persistence</groupId>
|
||||||
|
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
||||||
|
<version>1.0.2.Final</version>
|
||||||
|
</dependency> -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.qsoft</groupId>
|
||||||
|
<artifactId>dao-generico</artifactId>
|
||||||
|
<version>1.1.0-SNAPSHOT</version>
|
||||||
|
<type>jar</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.qsoft.util</groupId>
|
||||||
|
<artifactId>qsoft-util</artifactId>
|
||||||
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
|
<type>jar</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
|
<artifactId>jackson-annotations</artifactId>
|
||||||
|
<version>2.10.1</version>
|
||||||
|
<type>jar</type>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax</groupId>
|
||||||
|
<artifactId>javaee-web-api</artifactId>
|
||||||
|
<version>8.0.1</version>
|
||||||
|
<type>jar</type>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.compiler.source>11</maven.compiler.source>
|
||||||
|
<maven.compiler.target>11</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.dao;
|
||||||
|
|
||||||
|
import com.qsoft.dao.bdd.AbstractDaoGenericoBDD;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.persistence.EntityManager;
|
||||||
|
import javax.persistence.EntityManagerFactory;
|
||||||
|
import javax.persistence.Persistence;
|
||||||
|
import javax.persistence.PersistenceContext;
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
* @param <T>
|
||||||
|
* @param <PK>
|
||||||
|
*/
|
||||||
|
public class DaoGenerico<T extends Serializable, PK extends Serializable> extends AbstractDaoGenericoBDD<T, PK> {
|
||||||
|
|
||||||
|
private final static Integer MAX_REGISTROS = 1000;
|
||||||
|
|
||||||
|
@PersistenceContext(unitName = "wmpPU")
|
||||||
|
private EntityManagerFactory emf;
|
||||||
|
/**
|
||||||
|
* Unidad de persistencia
|
||||||
|
*/
|
||||||
|
@PersistenceContext(unitName = "wmpPU")
|
||||||
|
private EntityManager em;
|
||||||
|
/**
|
||||||
|
* datasource inyectado, se obtiene del contenedor EJB
|
||||||
|
*/
|
||||||
|
@Resource(mappedName = "jdbc/werpDS")
|
||||||
|
private DataSource dataSource;
|
||||||
|
|
||||||
|
public DaoGenerico(Class<T> tipo) {
|
||||||
|
super(tipo, MAX_REGISTROS);
|
||||||
|
}
|
||||||
|
|
||||||
|
public DaoGenerico(Class<T> tipo, Integer maxRegistros) {
|
||||||
|
super(tipo, maxRegistros);
|
||||||
|
}
|
||||||
|
|
||||||
|
private EntityManagerFactory getEmf() {
|
||||||
|
if (this.emf == null || !this.emf.isOpen()) {//TODO: este codigo es para ejecucion local o ejecucion forzada
|
||||||
|
this.emf = Persistence.createEntityManagerFactory("wmpPU");
|
||||||
|
}
|
||||||
|
return this.emf;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EntityManager getEm() {
|
||||||
|
if(this.em == null){
|
||||||
|
this.em = this.getEmf().createEntityManager();
|
||||||
|
}
|
||||||
|
return this.em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DataSource getDataSource() {
|
||||||
|
return this.dataSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,444 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "AGENDAMIENTO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Agendamiento.findAll", query = "SELECT a FROM Agendamiento a")})
|
||||||
|
public class Agendamiento implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 20725437083742L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "AGE_CODIGO")
|
||||||
|
private Integer ageCodigo;
|
||||||
|
@Column(name = "AGE_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date ageFechaRegistro;
|
||||||
|
@Column(name = "AGE_FECHA_AGENDA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date ageFechaAgenda;
|
||||||
|
@Column(name = "AGE_FECHA_CITA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date ageFechaCita;
|
||||||
|
@Column(name = "AGE_FECHA_CONFIRMA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date ageFechaConfirma;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "AGE_SINTOMAS")
|
||||||
|
private String ageSintomas;
|
||||||
|
@Column(name = "AGE_VALOR")
|
||||||
|
private Double ageValor;
|
||||||
|
@Column(name = "AGE_FACTURADO")
|
||||||
|
private Double ageFacturado;
|
||||||
|
@Column(name = "AGE_CUBIERTO")
|
||||||
|
private Double ageCubierto;
|
||||||
|
@Column(name = "AGE_NO_CUBIERTO")
|
||||||
|
private Double ageNoCubierto;
|
||||||
|
@Column(name = "AGE_COPAGO")
|
||||||
|
private Double ageCopago;
|
||||||
|
@Column(name = "AGE_DEDUCIBLE")
|
||||||
|
private Double ageDeducible;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "AGE_TELEFONO")
|
||||||
|
private String ageTelefono;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 2147483647)
|
||||||
|
@Column(name = "AGE_OBSERVACIONES")
|
||||||
|
private String ageObservaciones;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "AGE_MAIL_PACIENTE")
|
||||||
|
private String ageMailPaciente;
|
||||||
|
@Column(name = "AGE_COBERTURA")
|
||||||
|
private Double ageCobertura;
|
||||||
|
@Column(name = "AGE_OBSERVA_MEDICO")
|
||||||
|
private String ageObservaMedico;
|
||||||
|
@Column(name = "AGE_NOTIFICADO")
|
||||||
|
private Short ageNotificado;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "AGE_ESPECIALIDAD")
|
||||||
|
private String ageEspecialidad;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "AGE_MEDICO")
|
||||||
|
private String ageMedico;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "AGE_DOCUMENTOS")
|
||||||
|
private String ageDocumentos;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "AGE_APROBACION")
|
||||||
|
private String ageAprobacion;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "AGE_NEMONICO")
|
||||||
|
private String ageNemonico;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "AGE_EXAMENES")
|
||||||
|
private String ageExamenes;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "AGE_DIAGNOSTICO")
|
||||||
|
private String ageDiagnostico;
|
||||||
|
@Column(name = "AGE_PREEXISTENCIA")
|
||||||
|
private Short agePreexistencia;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "AGE_INDICACIONES")
|
||||||
|
private String ageIndicaciones;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "LOC_CODIGO", referencedColumnName = "LOC_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Localizacion locCodigo;
|
||||||
|
@JoinColumn(name = "PER_BENEFICIARIO", referencedColumnName = "PER_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Persona perBeneficiario;
|
||||||
|
@JoinColumn(name = "POL_CODIGO", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Poliza polCodigo;
|
||||||
|
@JoinColumn(name = "PRE_CODIGO", referencedColumnName = "PRE_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Prestador preCodigo;
|
||||||
|
@JoinColumn(name = "USU_CODIGO", referencedColumnName = "USU_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Usuario usuCodigo;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "ageCodigo")
|
||||||
|
private Collection<EstadoAgendamiento> estadoAgendamientoCollection;
|
||||||
|
|
||||||
|
public Agendamiento() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Agendamiento(Integer ageCodigo) {
|
||||||
|
this.ageCodigo = ageCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getAgeCodigo() {
|
||||||
|
return ageCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeCodigo(Integer ageCodigo) {
|
||||||
|
this.ageCodigo = ageCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getAgeCobertura() {
|
||||||
|
return ageCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeCobertura(Double ageCobertura) {
|
||||||
|
this.ageCobertura = ageCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getAgeFacturado() {
|
||||||
|
return ageFacturado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeFacturado(Double ageFacturado) {
|
||||||
|
this.ageFacturado = ageFacturado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getAgeCubierto() {
|
||||||
|
return ageCubierto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeCubierto(Double ageCubierto) {
|
||||||
|
this.ageCubierto = ageCubierto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getAgeNoCubierto() {
|
||||||
|
return ageNoCubierto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeNoCubierto(Double ageNoCubierto) {
|
||||||
|
this.ageNoCubierto = ageNoCubierto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getAgeCopago() {
|
||||||
|
return ageCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeCopago(Double ageCopago) {
|
||||||
|
this.ageCopago = ageCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getAgeDeducible() {
|
||||||
|
return ageDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeDeducible(Double ageDeducible) {
|
||||||
|
this.ageDeducible = ageDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeObservaMedico() {
|
||||||
|
return ageObservaMedico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeObservaMedico(String ageObservaMedico) {
|
||||||
|
this.ageObservaMedico = ageObservaMedico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeMailPaciente() {
|
||||||
|
return ageMailPaciente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeMailPaciente(String ageMailPaciente) {
|
||||||
|
this.ageMailPaciente = ageMailPaciente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getAgeFechaRegistro() {
|
||||||
|
return ageFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeFechaRegistro(Date ageFechaRegistro) {
|
||||||
|
this.ageFechaRegistro = ageFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeNemonico() {
|
||||||
|
return ageNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeNemonico(String ageNemonico) {
|
||||||
|
this.ageNemonico = ageNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getAgeFechaAgenda() {
|
||||||
|
return ageFechaAgenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeFechaAgenda(Date ageFechaAgenda) {
|
||||||
|
this.ageFechaAgenda = ageFechaAgenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getAgeFechaCita() {
|
||||||
|
return ageFechaCita;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeFechaCita(Date ageFechaCita) {
|
||||||
|
this.ageFechaCita = ageFechaCita;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getAgeFechaConfirma() {
|
||||||
|
return ageFechaConfirma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeFechaConfirma(Date ageFechaConfirma) {
|
||||||
|
this.ageFechaConfirma = ageFechaConfirma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeSintomas() {
|
||||||
|
return ageSintomas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeSintomas(String ageSintomas) {
|
||||||
|
this.ageSintomas = ageSintomas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getAgeValor() {
|
||||||
|
return ageValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeValor(Double ageValor) {
|
||||||
|
this.ageValor = ageValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeTelefono() {
|
||||||
|
return ageTelefono;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeTelefono(String ageTelefono) {
|
||||||
|
this.ageTelefono = ageTelefono;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeObservaciones() {
|
||||||
|
return ageObservaciones;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeObservaciones(String ageObservaciones) {
|
||||||
|
this.ageObservaciones = ageObservaciones;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getAgeNotificado() {
|
||||||
|
return ageNotificado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeNotificado(Short ageNotificado) {
|
||||||
|
this.ageNotificado = ageNotificado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeEspecialidad() {
|
||||||
|
return ageEspecialidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeEspecialidad(String ageEspecialidad) {
|
||||||
|
this.ageEspecialidad = ageEspecialidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeMedico() {
|
||||||
|
return ageMedico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeMedico(String ageMedico) {
|
||||||
|
this.ageMedico = ageMedico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeDocumentos() {
|
||||||
|
return ageDocumentos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeDocumentos(String ageDocumentos) {
|
||||||
|
this.ageDocumentos = ageDocumentos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeAprobacion() {
|
||||||
|
return ageAprobacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeAprobacion(String ageAprobacion) {
|
||||||
|
this.ageAprobacion = ageAprobacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeExamenes() {
|
||||||
|
return ageExamenes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeExamenes(String ageExamenes) {
|
||||||
|
this.ageExamenes = ageExamenes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeDiagnostico() {
|
||||||
|
return ageDiagnostico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeDiagnostico(String ageDiagnostico) {
|
||||||
|
this.ageDiagnostico = ageDiagnostico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getAgePreexistencia() {
|
||||||
|
return agePreexistencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgePreexistencia(Short agePreexistencia) {
|
||||||
|
this.agePreexistencia = agePreexistencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgeIndicaciones() {
|
||||||
|
return ageIndicaciones;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeIndicaciones(String ageIndicaciones) {
|
||||||
|
this.ageIndicaciones = ageIndicaciones;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Localizacion getLocCodigo() {
|
||||||
|
return locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocCodigo(Localizacion locCodigo) {
|
||||||
|
this.locCodigo = locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona getPerBeneficiario() {
|
||||||
|
return perBeneficiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerBeneficiario(Persona perBeneficiario) {
|
||||||
|
this.perBeneficiario = perBeneficiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Poliza polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Prestador getPreCodigo() {
|
||||||
|
return preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreCodigo(Prestador preCodigo) {
|
||||||
|
this.preCodigo = preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Usuario getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Usuario usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<EstadoAgendamiento> getEstadoAgendamientoCollection() {
|
||||||
|
return estadoAgendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoAgendamientoCollection(Collection<EstadoAgendamiento> estadoAgendamientoCollection) {
|
||||||
|
this.estadoAgendamientoCollection = estadoAgendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (ageCodigo != null ? ageCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Agendamiento)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Agendamiento other = (Agendamiento) object;
|
||||||
|
if ((this.ageCodigo == null && other.ageCodigo != null) || (this.ageCodigo != null && !this.ageCodigo.equals(other.ageCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.erp.model.Agendamiento[ ageCodigo=" + ageCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,310 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "AUDITORIA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Auditoria.findAll", query = "SELECT a FROM Auditoria a")})
|
||||||
|
public class Auditoria implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 260599368400598L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "AUD_CODIGO")
|
||||||
|
private Integer audCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "AUD_DISPOSITIVO")
|
||||||
|
private String audDispositivo;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "AUD_CANAL")
|
||||||
|
private String audCanal;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "AUD_MEDIO")
|
||||||
|
private String audMedio;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "AUD_APLICACION")
|
||||||
|
private String audAplicacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "AUD_TRANSACCION")
|
||||||
|
private String audTransaccion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "AUD_USUARIO")
|
||||||
|
private String audUsuario;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "AUD_TOKEN")
|
||||||
|
private String audToken;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "AUD_FECHA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date audFecha;
|
||||||
|
@Size(max = 10)
|
||||||
|
@Column(name = "AUD_IDIOMA")
|
||||||
|
private String audIdioma;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "AUD_EMPRESA")
|
||||||
|
private String audEmpresa;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "AUD_GEOLOCALIZACION")
|
||||||
|
private String audGeolocalizacion;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "AUD_TIPO_EJECUCION")
|
||||||
|
private String audTipoEjecucion;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "AUD_ENTIDAD")
|
||||||
|
private String audEntidad;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "AUD_ENDPOINT")
|
||||||
|
private String audEndpoint;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "AUD_SERVICIO")
|
||||||
|
private String audServicio;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "AUD_METODO")
|
||||||
|
private String audMetodo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "AUD_BACKEND")
|
||||||
|
private String audBackend;
|
||||||
|
@Column(name = "AUD_TIEMPO_EJECUCION")
|
||||||
|
private Integer audTiempoEjecucion;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 2147483647)
|
||||||
|
@Column(name = "AUD_DINAMICO")
|
||||||
|
private String audDinamico;
|
||||||
|
|
||||||
|
public Auditoria() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Auditoria(Integer audCodigo) {
|
||||||
|
this.audCodigo = audCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Auditoria(Integer audCodigo, String audDispositivo, String audTransaccion, String audUsuario, Date audFecha) {
|
||||||
|
this.audCodigo = audCodigo;
|
||||||
|
this.audDispositivo = audDispositivo;
|
||||||
|
this.audTransaccion = audTransaccion;
|
||||||
|
this.audUsuario = audUsuario;
|
||||||
|
this.audFecha = audFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getAudCodigo() {
|
||||||
|
return audCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudCodigo(Integer audCodigo) {
|
||||||
|
this.audCodigo = audCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudDispositivo() {
|
||||||
|
return audDispositivo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudDispositivo(String audDispositivo) {
|
||||||
|
this.audDispositivo = audDispositivo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudCanal() {
|
||||||
|
return audCanal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudCanal(String audCanal) {
|
||||||
|
this.audCanal = audCanal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudMedio() {
|
||||||
|
return audMedio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudMedio(String audMedio) {
|
||||||
|
this.audMedio = audMedio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudAplicacion() {
|
||||||
|
return audAplicacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudAplicacion(String audAplicacion) {
|
||||||
|
this.audAplicacion = audAplicacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudTransaccion() {
|
||||||
|
return audTransaccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudTransaccion(String audTransaccion) {
|
||||||
|
this.audTransaccion = audTransaccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudUsuario() {
|
||||||
|
return audUsuario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudUsuario(String audUsuario) {
|
||||||
|
this.audUsuario = audUsuario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudToken() {
|
||||||
|
return audToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudToken(String audToken) {
|
||||||
|
this.audToken = audToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getAudFecha() {
|
||||||
|
return audFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudFecha(Date audFecha) {
|
||||||
|
this.audFecha = audFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudIdioma() {
|
||||||
|
return audIdioma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudIdioma(String audIdioma) {
|
||||||
|
this.audIdioma = audIdioma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudEmpresa() {
|
||||||
|
return audEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudEmpresa(String audEmpresa) {
|
||||||
|
this.audEmpresa = audEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudGeolocalizacion() {
|
||||||
|
return audGeolocalizacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudGeolocalizacion(String audGeolocalizacion) {
|
||||||
|
this.audGeolocalizacion = audGeolocalizacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudTipoEjecucion() {
|
||||||
|
return audTipoEjecucion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudTipoEjecucion(String audTipoEjecucion) {
|
||||||
|
this.audTipoEjecucion = audTipoEjecucion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudEntidad() {
|
||||||
|
return audEntidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudEntidad(String audEntidad) {
|
||||||
|
this.audEntidad = audEntidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudEndpoint() {
|
||||||
|
return audEndpoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudEndpoint(String audEndpoint) {
|
||||||
|
this.audEndpoint = audEndpoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudServicio() {
|
||||||
|
return audServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudServicio(String audServicio) {
|
||||||
|
this.audServicio = audServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudMetodo() {
|
||||||
|
return audMetodo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudMetodo(String audMetodo) {
|
||||||
|
this.audMetodo = audMetodo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudBackend() {
|
||||||
|
return audBackend;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudBackend(String audBackend) {
|
||||||
|
this.audBackend = audBackend;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getAudTiempoEjecucion() {
|
||||||
|
return audTiempoEjecucion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudTiempoEjecucion(Integer audTiempoEjecucion) {
|
||||||
|
this.audTiempoEjecucion = audTiempoEjecucion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAudDinamico() {
|
||||||
|
return audDinamico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAudDinamico(String audDinamico) {
|
||||||
|
this.audDinamico = audDinamico;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (audCodigo != null ? audCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Auditoria)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Auditoria other = (Auditoria) object;
|
||||||
|
if ((this.audCodigo == null && other.audCodigo != null) || (this.audCodigo != null && !this.audCodigo.equals(other.audCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.erp.model.Auditoria[ audCodigo=" + audCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,176 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "CATALOGO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Catalogo.findAll", query = "SELECT c FROM Catalogo c")})
|
||||||
|
public class Catalogo implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55501119715876L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "CAT_CODIGO")
|
||||||
|
private Integer catCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "CAT_NEMONICO")
|
||||||
|
private String catNemonico;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 20)
|
||||||
|
@Column(name = "CAT_GRUPO")
|
||||||
|
private String catGrupo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "CAT_NOMBRE")
|
||||||
|
private String catNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "CAT_DESCRIPCION")
|
||||||
|
private String catDescripcion;
|
||||||
|
@Column(name = "CAT_ESTADO")
|
||||||
|
private Short catEstado;
|
||||||
|
@JoinColumn(name = "EMP_CODIGO", referencedColumnName = "EMP_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Empresa empCodigo;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "catCodigo")
|
||||||
|
private Collection<DetalleCatalogo> detalleCatalogoCollection;
|
||||||
|
|
||||||
|
public Catalogo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Catalogo(Integer catCodigo) {
|
||||||
|
this.catCodigo = catCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Catalogo(Integer catCodigo, String catNemonico, String catGrupo, String catNombre) {
|
||||||
|
this.catCodigo = catCodigo;
|
||||||
|
this.catNemonico = catNemonico;
|
||||||
|
this.catGrupo = catGrupo;
|
||||||
|
this.catNombre = catNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCatCodigo() {
|
||||||
|
return catCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatCodigo(Integer catCodigo) {
|
||||||
|
this.catCodigo = catCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCatNemonico() {
|
||||||
|
return catNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatNemonico(String catNemonico) {
|
||||||
|
this.catNemonico = catNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCatGrupo() {
|
||||||
|
return catGrupo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatGrupo(String catGrupo) {
|
||||||
|
this.catGrupo = catGrupo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCatNombre() {
|
||||||
|
return catNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatNombre(String catNombre) {
|
||||||
|
this.catNombre = catNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCatDescripcion() {
|
||||||
|
return catDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatDescripcion(String catDescripcion) {
|
||||||
|
this.catDescripcion = catDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getCatEstado() {
|
||||||
|
return catEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatEstado(Short catEstado) {
|
||||||
|
this.catEstado = catEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Empresa empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<DetalleCatalogo> getDetalleCatalogoCollection() {
|
||||||
|
return detalleCatalogoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetalleCatalogoCollection(Collection<DetalleCatalogo> detalleCatalogoCollection) {
|
||||||
|
this.detalleCatalogoCollection = detalleCatalogoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (catCodigo != null ? catCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Catalogo)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Catalogo other = (Catalogo) object;
|
||||||
|
if ((this.catCodigo == null && other.catCodigo != null) || (this.catCodigo != null && !this.catCodigo.equals(other.catCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Catalogo[ catCodigo=" + catCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,209 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "COBERTURAS_PLAN")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "CoberturasPlan.findAll", query = "SELECT c FROM CoberturasPlan c")})
|
||||||
|
public class CoberturasPlan implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 7984716297480L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "COP_CODIGO")
|
||||||
|
private Integer copCodigo;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "COP_COPAGO")
|
||||||
|
private Double copCopago;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "COP_TOPE")
|
||||||
|
private Double copTope;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "COP_ESTADO")
|
||||||
|
private Short copEstado;
|
||||||
|
@Column(name = "COP_TIPO_TARIFARIO")
|
||||||
|
private Short copTipoTarifario;
|
||||||
|
@JoinColumn(name = "DET_PRESTACION", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detPrestacion;
|
||||||
|
@JoinColumn(name = "DET_TIPO_MODALIDAD", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipoModalidad;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "DET_PAIS", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detPais;
|
||||||
|
@JoinColumn(name = "PLA_CODIGO", referencedColumnName = "PLA_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Plan plaCodigo;
|
||||||
|
@Column(name = "COP_VALOR_DEDUCIBLE")
|
||||||
|
private Double copValorDeducible;
|
||||||
|
@JoinColumn(name = "DET_TIPO_DEDUCIBLE", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipoDeducible;
|
||||||
|
|
||||||
|
public CoberturasPlan() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public CoberturasPlan(Integer copCodigo) {
|
||||||
|
this.copCodigo = copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CoberturasPlan(Integer copCodigo, Double copTope, Short copEstado) {
|
||||||
|
this.copCodigo = copCodigo;
|
||||||
|
this.copTope = copTope;
|
||||||
|
this.copEstado = copEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCopCodigo() {
|
||||||
|
return copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopCodigo(Integer copCodigo) {
|
||||||
|
this.copCodigo = copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getCopTipoTarifario() {
|
||||||
|
return copTipoTarifario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopTipoTarifario(Short copTipoTarifario) {
|
||||||
|
this.copTipoTarifario = copTipoTarifario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getCopCopago() {
|
||||||
|
return copCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopCopago(Double copCopago) {
|
||||||
|
this.copCopago = copCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getCopValorDeducible() {
|
||||||
|
return copValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopValorDeducible(Double copValorDeducible) {
|
||||||
|
this.copValorDeducible = copValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipoDeducible() {
|
||||||
|
return detTipoDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoDeducible(DetalleCatalogo detTipoDeducible) {
|
||||||
|
this.detTipoDeducible = detTipoDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getCopTope() {
|
||||||
|
return copTope;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopTope(Double copTope) {
|
||||||
|
this.copTope = copTope;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getCopEstado() {
|
||||||
|
return copEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopEstado(Short copEstado) {
|
||||||
|
this.copEstado = copEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetPrestacion() {
|
||||||
|
return detPrestacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetPrestacion(DetalleCatalogo detPrestacion) {
|
||||||
|
this.detPrestacion = detPrestacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipoModalidad() {
|
||||||
|
return detTipoModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoModalidad(DetalleCatalogo detTipoModalidad) {
|
||||||
|
this.detTipoModalidad = detTipoModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetPais() {
|
||||||
|
return detPais;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetPais(DetalleCatalogo detPais) {
|
||||||
|
this.detPais = detPais;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plan getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Plan plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (copCodigo != null ? copCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof CoberturasPlan)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
CoberturasPlan other = (CoberturasPlan) object;
|
||||||
|
if ((this.copCodigo == null && other.copCodigo != null) || (this.copCodigo != null && !this.copCodigo.equals(other.copCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.CoberturasPlan[ copCodigo=" + copCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,210 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "CUENTA_BANCARIA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "CuentaBancaria.findAll", query = "SELECT c FROM CuentaBancaria c")})
|
||||||
|
public class CuentaBancaria implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8093248715821L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "CUE_CODIGO")
|
||||||
|
private Integer cueCodigo;
|
||||||
|
@Column(name = "CUE_ESTADO")
|
||||||
|
private Short cueEstado;
|
||||||
|
@Column(name = "CUE_DEBITO")
|
||||||
|
private Short cueDebito;
|
||||||
|
@JoinColumn(name = "DET_IFI", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detIfi;
|
||||||
|
@JoinColumn(name = "DET_TIPO_CUENTA", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipoCuenta;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "CUE_CUENTA")
|
||||||
|
private String cueCuenta;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "CUE_IDENTIFICACION")
|
||||||
|
private String cueIdentificacion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "CUE_NOMBRE_DEBITO")
|
||||||
|
private String cueNombreDebito;
|
||||||
|
@JoinColumn(name = "PER_CODIGO", referencedColumnName = "PER_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Persona perCodigo;
|
||||||
|
@OneToMany(mappedBy = "cueCodigo")
|
||||||
|
private Collection<Formulario> formularioCollection;
|
||||||
|
@OneToMany(mappedBy = "cueOrigen")
|
||||||
|
private Collection<Liquidacion> liquidacionCollection;
|
||||||
|
@OneToMany(mappedBy = "cueDestino")
|
||||||
|
private Collection<Liquidacion> liquidacionCollection1;
|
||||||
|
|
||||||
|
public CuentaBancaria() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public CuentaBancaria(Integer cueCodigo) {
|
||||||
|
this.cueCodigo = cueCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CuentaBancaria(Integer cueCodigo, String cueCuenta) {
|
||||||
|
this.cueCodigo = cueCodigo;
|
||||||
|
this.cueCuenta = cueCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCueCodigo() {
|
||||||
|
return cueCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueCodigo(Integer cueCodigo) {
|
||||||
|
this.cueCodigo = cueCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCueNombreDebito() {
|
||||||
|
return cueNombreDebito;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueNombreDebito(String cueNombreDebito) {
|
||||||
|
this.cueNombreDebito = cueNombreDebito;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCueCuenta() {
|
||||||
|
return cueCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueCuenta(String cueCuenta) {
|
||||||
|
this.cueCuenta = cueCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getCueDebito() {
|
||||||
|
return cueDebito;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueDebito(Short cueDebito) {
|
||||||
|
this.cueDebito = cueDebito;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getCueEstado() {
|
||||||
|
return cueEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCueIdentificacion() {
|
||||||
|
return cueIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueIdentificacion(String cueIdentificacion) {
|
||||||
|
this.cueIdentificacion = cueIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void setCueEstado(Short cueEstado) {
|
||||||
|
this.cueEstado = cueEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(DetalleCatalogo detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipoCuenta() {
|
||||||
|
return detTipoCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoCuenta(DetalleCatalogo detTipoCuenta) {
|
||||||
|
this.detTipoCuenta = detTipoCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona getPerCodigo() {
|
||||||
|
return perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerCodigo(Persona perCodigo) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Formulario> getFormularioCollection() {
|
||||||
|
return formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormularioCollection(Collection<Formulario> formularioCollection) {
|
||||||
|
this.formularioCollection = formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Liquidacion> getLiquidacionCollection() {
|
||||||
|
return liquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiquidacionCollection(Collection<Liquidacion> liquidacionCollection) {
|
||||||
|
this.liquidacionCollection = liquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Liquidacion> getLiquidacionCollection1() {
|
||||||
|
return liquidacionCollection1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiquidacionCollection1(Collection<Liquidacion> liquidacionCollection1) {
|
||||||
|
this.liquidacionCollection1 = liquidacionCollection1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (cueCodigo != null ? cueCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof CuentaBancaria)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
CuentaBancaria other = (CuentaBancaria) object;
|
||||||
|
if ((this.cueCodigo == null && other.cueCodigo != null) || (this.cueCodigo != null && !this.cueCodigo.equals(other.cueCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.CuentaBancaria[ cueCodigo=" + cueCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,359 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "DETALLE_CATALOGO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "DetalleCatalogo.findAll", query = "SELECT d FROM DetalleCatalogo d")})
|
||||||
|
public class DetalleCatalogo implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55718773874657L;
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "DET_CODIGO")
|
||||||
|
private Integer detCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "DET_NEMONICO")
|
||||||
|
private String detNemonico;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "DET_TIPO")
|
||||||
|
private String detTipo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE")
|
||||||
|
private String detNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_ORIGEN")
|
||||||
|
private String detOrigen;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESTINO")
|
||||||
|
private String detDestino;
|
||||||
|
@Size(max = 511)
|
||||||
|
@Column(name = "DET_DESCRIPCION")
|
||||||
|
private String detDescripcion;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detGrupo")
|
||||||
|
private Collection<Honorario> honorarioCollection;
|
||||||
|
@OneToMany(mappedBy = "detEstado")
|
||||||
|
private Collection<EstadoAgendamiento> estadoAgendamientoCollection;
|
||||||
|
@OneToMany(mappedBy = "detSucursalIfi")
|
||||||
|
private Collection<Poliza> polizaCollection;
|
||||||
|
@OneToMany(mappedBy = "detFormaPago")
|
||||||
|
private Collection<Poliza> polizaCollection2;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detIfi")
|
||||||
|
private Collection<Poliza> polizaCollection3;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detModalidad")
|
||||||
|
private Collection<Poliza> polizaCollection4;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detPeriodicidad")
|
||||||
|
private Collection<Poliza> polizaCollection5;
|
||||||
|
@OneToMany(mappedBy = "detTipo")
|
||||||
|
private Collection<Prestador> prestadorCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detTipo")
|
||||||
|
private Collection<Plan> planCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detModalidad")
|
||||||
|
private Collection<Plan> planCollection1;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detDeducible")
|
||||||
|
private Collection<Plan> planCollection2;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detTarifario")
|
||||||
|
private Collection<Plan> planCollection3;
|
||||||
|
@Column(name = "DET_ESTADO")
|
||||||
|
private Short detEstado;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detIdioma")
|
||||||
|
private Collection<Mensaje> mensajeCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detAplicacion")
|
||||||
|
private Collection<Mensaje> mensajeCollection1;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detServicio")
|
||||||
|
private Collection<Mensaje> mensajeCollection2;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detTipoMensaje")
|
||||||
|
private Collection<Mensaje> mensajeCollection3;
|
||||||
|
@OneToMany(mappedBy = "detGenero")
|
||||||
|
private Collection<Persona> personaCollection;
|
||||||
|
@OneToMany(mappedBy = "detTipoIdentificacion")
|
||||||
|
private Collection<Persona> personaCollection3;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "detTipo")
|
||||||
|
private Collection<Empresa> empresaCollection;
|
||||||
|
@JoinColumn(name = "CAT_CODIGO", referencedColumnName = "CAT_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Catalogo catCodigo;
|
||||||
|
|
||||||
|
public DetalleCatalogo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo(Integer detCodigo) {
|
||||||
|
this.detCodigo = detCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo(Integer detCodigo, String detNemonico, String detNombre) {
|
||||||
|
this.detCodigo = detCodigo;
|
||||||
|
this.detNemonico = detNemonico;
|
||||||
|
this.detNombre = detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(String detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre() {
|
||||||
|
return detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre(String detNombre) {
|
||||||
|
this.detNombre = detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNemonico() {
|
||||||
|
return detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNemonico(String detNemonico) {
|
||||||
|
this.detNemonico = detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetOrigen() {
|
||||||
|
return detOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetOrigen(String detOrigen) {
|
||||||
|
this.detOrigen = detOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDestino() {
|
||||||
|
return detDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDestino(String detDestino) {
|
||||||
|
this.detDestino = detDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDescripcion() {
|
||||||
|
return detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDescripcion(String detDescripcion) {
|
||||||
|
this.detDescripcion = detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetCodigo() {
|
||||||
|
return detCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetCodigo(Integer detCodigo) {
|
||||||
|
this.detCodigo = detCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(Short detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Mensaje> getMensajeCollection() {
|
||||||
|
return mensajeCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMensajeCollection(Collection<Mensaje> mensajeCollection) {
|
||||||
|
this.mensajeCollection = mensajeCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Mensaje> getMensajeCollection1() {
|
||||||
|
return mensajeCollection1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMensajeCollection1(Collection<Mensaje> mensajeCollection1) {
|
||||||
|
this.mensajeCollection1 = mensajeCollection1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Mensaje> getMensajeCollection2() {
|
||||||
|
return mensajeCollection2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMensajeCollection2(Collection<Mensaje> mensajeCollection2) {
|
||||||
|
this.mensajeCollection2 = mensajeCollection2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Mensaje> getMensajeCollection3() {
|
||||||
|
return mensajeCollection3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMensajeCollection3(Collection<Mensaje> mensajeCollection3) {
|
||||||
|
this.mensajeCollection3 = mensajeCollection3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Persona> getPersonaCollection() {
|
||||||
|
return personaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonaCollection(Collection<Persona> personaCollection) {
|
||||||
|
this.personaCollection = personaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Persona> getPersonaCollection3() {
|
||||||
|
return personaCollection3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonaCollection3(Collection<Persona> personaCollection3) {
|
||||||
|
this.personaCollection3 = personaCollection3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Empresa> getEmpresaCollection() {
|
||||||
|
return empresaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresaCollection(Collection<Empresa> empresaCollection) {
|
||||||
|
this.empresaCollection = empresaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Catalogo getCatCodigo() {
|
||||||
|
return catCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatCodigo(Catalogo catCodigo) {
|
||||||
|
this.catCodigo = catCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<EstadoAgendamiento> getEstadoAgendamientoCollection() {
|
||||||
|
return estadoAgendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoAgendamientoCollection(Collection<EstadoAgendamiento> estadoAgendamientoCollection) {
|
||||||
|
this.estadoAgendamientoCollection = estadoAgendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Poliza> getPolizaCollection() {
|
||||||
|
return polizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolizaCollection(Collection<Poliza> polizaCollection) {
|
||||||
|
this.polizaCollection = polizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Poliza> getPolizaCollection2() {
|
||||||
|
return polizaCollection2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolizaCollection2(Collection<Poliza> polizaCollection2) {
|
||||||
|
this.polizaCollection2 = polizaCollection2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Poliza> getPolizaCollection3() {
|
||||||
|
return polizaCollection3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolizaCollection3(Collection<Poliza> polizaCollection3) {
|
||||||
|
this.polizaCollection3 = polizaCollection3;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Poliza> getPolizaCollection4() {
|
||||||
|
return polizaCollection4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolizaCollection4(Collection<Poliza> polizaCollection4) {
|
||||||
|
this.polizaCollection4 = polizaCollection4;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Poliza> getPolizaCollection5() {
|
||||||
|
return polizaCollection5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolizaCollection5(Collection<Poliza> polizaCollection5) {
|
||||||
|
this.polizaCollection5 = polizaCollection5;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Prestador> getPrestadorCollection() {
|
||||||
|
return prestadorCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrestadorCollection(Collection<Prestador> prestadorCollection) {
|
||||||
|
this.prestadorCollection = prestadorCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Plan> getPlanCollection() {
|
||||||
|
return planCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanCollection(Collection<Plan> planCollection) {
|
||||||
|
this.planCollection = planCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Plan> getPlanCollection1() {
|
||||||
|
return planCollection1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanCollection1(Collection<Plan> planCollection1) {
|
||||||
|
this.planCollection1 = planCollection1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Plan> getPlanCollection2() {
|
||||||
|
return planCollection2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanCollection2(Collection<Plan> planCollection2) {
|
||||||
|
this.planCollection2 = planCollection2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Plan> getPlanCollection3() {
|
||||||
|
return planCollection3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanCollection3(Collection<Plan> planCollection3) {
|
||||||
|
this.planCollection3 = planCollection3;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Honorario> getHonorarioCollection() {
|
||||||
|
return honorarioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonorarioCollection(Collection<Honorario> honorarioCollection) {
|
||||||
|
this.honorarioCollection = honorarioCollection;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,303 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "DETALLE_LIQUIDACION")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "DetalleLiquidacion.findAll", query = "SELECT d FROM DetalleLiquidacion d")})
|
||||||
|
public class DetalleLiquidacion implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55854070219194L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "DEL_CODIGO")
|
||||||
|
private Integer delCodigo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DEL_MEDICO")
|
||||||
|
private String delMedico;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DEL_SERVICIO")
|
||||||
|
private String delServicio;
|
||||||
|
@Size(max = 4096)
|
||||||
|
@Column(name = "DEL_DESCRIPCION")
|
||||||
|
private String delDescripcion;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "DEL_FACTURA")
|
||||||
|
private String delFactura;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "DEL_FAC_CLAVE_ACCESO")
|
||||||
|
private String delFacClaveAcceso;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "DEL_FAC_AUTORIZACION")
|
||||||
|
private String delFacAutorizacion;
|
||||||
|
@Column(name = "DEL_VALOR_REGISTRADO")
|
||||||
|
private Double delValorRegistrado;
|
||||||
|
@Column(name = "DEL_VALOR_OBJETADO")
|
||||||
|
private Double delValorObjetado;
|
||||||
|
@Column(name = "DEL_VALOR_PAGADO")
|
||||||
|
private Double delValorPagado;
|
||||||
|
@Column(name = "DEL_COPAGO")
|
||||||
|
private Double delCopago;
|
||||||
|
@Column(name = "DEL_DEDUCIBLE_PAGADO")
|
||||||
|
private Double delDeduciblePagado;
|
||||||
|
@Column(name = "DEL_COPAGO_PAGADO")
|
||||||
|
private Double delCopagoPagado;
|
||||||
|
@Column(name = "DEL_FECHA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date delFecha;
|
||||||
|
@JoinColumn(name = "PRE_CODIGO", referencedColumnName = "PRE_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Prestador preCodigo;
|
||||||
|
@JoinColumn(name = "DET_CIE10", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detCie10;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "LIQ_CODIGO", referencedColumnName = "LIQ_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Liquidacion liqCodigo;
|
||||||
|
@JoinColumn(name = "COP_CODIGO", referencedColumnName = "COP_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private CoberturasPlan copCodigo;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "delCodigo")
|
||||||
|
private Collection<TarifaLiquidacion> tarifaLiquidacionCollection;
|
||||||
|
@Column(name = "DEL_ESTADO")
|
||||||
|
private Short delEstado;
|
||||||
|
|
||||||
|
|
||||||
|
public DetalleLiquidacion() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleLiquidacion(Integer delCodigo) {
|
||||||
|
this.delCodigo = delCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelFactura() {
|
||||||
|
return delFactura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelFactura(String delFactura) {
|
||||||
|
this.delFactura = delFactura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getDelEstado() {
|
||||||
|
return delEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelEstado(Short delEstado) {
|
||||||
|
this.delEstado = delEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CoberturasPlan getCopCodigo() {
|
||||||
|
return copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopCodigo(CoberturasPlan copCodigo) {
|
||||||
|
this.copCodigo = copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDelCodigo() {
|
||||||
|
return delCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelCodigo(Integer delCodigo) {
|
||||||
|
this.delCodigo = delCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelMedico() {
|
||||||
|
return delMedico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelMedico(String delMedico) {
|
||||||
|
this.delMedico = delMedico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelServicio() {
|
||||||
|
return delServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelServicio(String delServicio) {
|
||||||
|
this.delServicio = delServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelDescripcion() {
|
||||||
|
return delDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelDescripcion(String delDescripcion) {
|
||||||
|
this.delDescripcion = delDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelDeduciblePagado() {
|
||||||
|
return delDeduciblePagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelDeduciblePagado(Double delDeduciblePagado) {
|
||||||
|
this.delDeduciblePagado = delDeduciblePagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelCopagoPagado() {
|
||||||
|
return delCopagoPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelCopagoPagado(Double delCopagoPagado) {
|
||||||
|
this.delCopagoPagado = delCopagoPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelValorRegistrado() {
|
||||||
|
return delValorRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelValorRegistrado(Double delValorRegistrado) {
|
||||||
|
this.delValorRegistrado = delValorRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelValorObjetado() {
|
||||||
|
return delValorObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelValorObjetado(Double delValorObjetado) {
|
||||||
|
this.delValorObjetado = delValorObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelValorPagado() {
|
||||||
|
return delValorPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelValorPagado(Double delValorPagado) {
|
||||||
|
this.delValorPagado = delValorPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelCopago() {
|
||||||
|
return delCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelCopago(Double delCopago) {
|
||||||
|
this.delCopago = delCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDelFecha() {
|
||||||
|
return delFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelFecha(Date delFecha) {
|
||||||
|
this.delFecha = delFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Prestador getPreCodigo() {
|
||||||
|
return preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreCodigo(Prestador preCodigo) {
|
||||||
|
this.preCodigo = preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetCie10() {
|
||||||
|
return detCie10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetCie10(DetalleCatalogo detCie10) {
|
||||||
|
this.detCie10 = detCie10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Liquidacion getLiqCodigo() {
|
||||||
|
return liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCodigo(Liquidacion liqCodigo) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<TarifaLiquidacion> getTarifaLiquidacionCollection() {
|
||||||
|
return tarifaLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarifaLiquidacionCollection(Collection<TarifaLiquidacion> tarifaLiquidacionCollection) {
|
||||||
|
this.tarifaLiquidacionCollection = tarifaLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (delCodigo != null ? delCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelFacClaveAcceso() {
|
||||||
|
return delFacClaveAcceso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelFacClaveAcceso(String delFacClaveAcceso) {
|
||||||
|
this.delFacClaveAcceso = delFacClaveAcceso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelFacAutorizacion() {
|
||||||
|
return delFacAutorizacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelFacAutorizacion(String delFacAutorizacion) {
|
||||||
|
this.delFacAutorizacion = delFacAutorizacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof DetalleLiquidacion)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
DetalleLiquidacion other = (DetalleLiquidacion) object;
|
||||||
|
if ((this.delCodigo == null && other.delCodigo != null) || (this.delCodigo != null && !this.delCodigo.equals(other.delCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.DetalleLiquidacion[ delCodigo=" + delCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,194 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "DOCUMENTO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Documento.findAll", query = "SELECT d FROM Documento d")})
|
||||||
|
public class Documento implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8121145467026L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "DOC_CODIGO")
|
||||||
|
private Integer docCodigo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DOC_NOMBRE")
|
||||||
|
private String docNombre;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "DOC_URL")
|
||||||
|
private String docUrl;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DOC_DESCRIPCION")
|
||||||
|
private String docDescripcion;
|
||||||
|
@Size(max = 1022)
|
||||||
|
@Column(name = "DOC_OBSERVACION")
|
||||||
|
private String docObservacion;
|
||||||
|
@Column(name = "DOC_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date docFechaRegistro;
|
||||||
|
@Column(name = "DOC_ESTADO")
|
||||||
|
private Short docEstado;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "LIQ_CODIGO", referencedColumnName = "LIQ_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Liquidacion liqCodigo;
|
||||||
|
@JoinColumn(name = "POL_CODIGO", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Poliza polCodigo;
|
||||||
|
@JoinColumn(name = "AGE_CODIGO", referencedColumnName = "AGE_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Agendamiento ageCodigo;
|
||||||
|
|
||||||
|
public Documento() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Documento(Integer docCodigo) {
|
||||||
|
this.docCodigo = docCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDocCodigo() {
|
||||||
|
return docCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocCodigo(Integer docCodigo) {
|
||||||
|
this.docCodigo = docCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDocNombre() {
|
||||||
|
return docNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocNombre(String docNombre) {
|
||||||
|
this.docNombre = docNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDocUrl() {
|
||||||
|
return docUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocUrl(String docUrl) {
|
||||||
|
this.docUrl = docUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDocDescripcion() {
|
||||||
|
return docDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocDescripcion(String docDescripcion) {
|
||||||
|
this.docDescripcion = docDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDocObservacion() {
|
||||||
|
return docObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocObservacion(String docObservacion) {
|
||||||
|
this.docObservacion = docObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDocFechaRegistro() {
|
||||||
|
return docFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocFechaRegistro(Date docFechaRegistro) {
|
||||||
|
this.docFechaRegistro = docFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Agendamiento getAgeCodigo() {
|
||||||
|
return ageCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeCodigo(Agendamiento ageCodigo) {
|
||||||
|
this.ageCodigo = ageCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getDocEstado() {
|
||||||
|
return docEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocEstado(Short docEstado) {
|
||||||
|
this.docEstado = docEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Liquidacion getLiqCodigo() {
|
||||||
|
return liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCodigo(Liquidacion liqCodigo) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Poliza polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (docCodigo != null ? docCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Documento)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Documento other = (Documento) object;
|
||||||
|
if ((this.docCodigo == null && other.docCodigo != null) || (this.docCodigo != null && !this.docCodigo.equals(other.docCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Documento[ docCodigo=" + docCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,220 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "EMAIL")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Email.findAll", query = "SELECT e FROM Email e")})
|
||||||
|
public class Email implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8133674873599L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "EMA_CODIGO")
|
||||||
|
private Integer emaCodigo;
|
||||||
|
@Column(name = "EMA_INTENTO")
|
||||||
|
private Short emaIntento;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "EMA_SMS")
|
||||||
|
private String emaSms;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "EMA_TELEFONO")
|
||||||
|
private String emaTelefono;
|
||||||
|
@Size(max = 65000)
|
||||||
|
@Column(name = "EMA_CONTENIDO")
|
||||||
|
private String emaContenido;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "EMA_DESTINATIARIO")
|
||||||
|
private String emaDestinatiario;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "EMA_COPIA")
|
||||||
|
private String emaCopia;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "EMA_COPIA_OCULTA")
|
||||||
|
private String emaCopiaOculta;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "EMA_ASUNTO")
|
||||||
|
private String emaAsunto;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "EMA_ADJUNTO")
|
||||||
|
private String emaAdjunto;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "EMA_OBSERVACION")
|
||||||
|
private String emaObservacion;
|
||||||
|
@JoinColumn(name = "PAR_ESTADO", referencedColumnName = "PAR_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Parametro parEstado;
|
||||||
|
@JoinColumn(name = "PLSM_CODIGO", referencedColumnName = "PLSM_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private PlantillaSmtp plsmCodigo;
|
||||||
|
|
||||||
|
public Email() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Email(Integer emaCodigo) {
|
||||||
|
this.emaCodigo = emaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Email(Integer emaCodigo, String emaContenido, String emaDestinatiario) {
|
||||||
|
this.emaCodigo = emaCodigo;
|
||||||
|
this.emaContenido = emaContenido;
|
||||||
|
this.emaDestinatiario = emaDestinatiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmaCodigo() {
|
||||||
|
return emaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaCodigo(Integer emaCodigo) {
|
||||||
|
this.emaCodigo = emaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaSms() {
|
||||||
|
return emaSms;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaSms(String emaSms) {
|
||||||
|
this.emaSms = emaSms;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaTelefono() {
|
||||||
|
return emaTelefono;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaTelefono(String emaTelefono) {
|
||||||
|
this.emaTelefono = emaTelefono;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getEmaIntento() {
|
||||||
|
return emaIntento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaIntento(Short emaIntento) {
|
||||||
|
this.emaIntento = emaIntento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaContenido() {
|
||||||
|
return emaContenido;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaContenido(String emaContenido) {
|
||||||
|
this.emaContenido = emaContenido;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaDestinatiario() {
|
||||||
|
return emaDestinatiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaDestinatiario(String emaDestinatiario) {
|
||||||
|
this.emaDestinatiario = emaDestinatiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaCopia() {
|
||||||
|
return emaCopia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaCopia(String emaCopia) {
|
||||||
|
this.emaCopia = emaCopia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaCopiaOculta() {
|
||||||
|
return emaCopiaOculta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaCopiaOculta(String emaCopiaOculta) {
|
||||||
|
this.emaCopiaOculta = emaCopiaOculta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaAsunto() {
|
||||||
|
return emaAsunto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaAsunto(String emaAsunto) {
|
||||||
|
this.emaAsunto = emaAsunto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaAdjunto() {
|
||||||
|
return emaAdjunto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaAdjunto(String emaAdjunto) {
|
||||||
|
this.emaAdjunto = emaAdjunto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmaObservacion() {
|
||||||
|
return emaObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmaObservacion(String emaObservacion) {
|
||||||
|
this.emaObservacion = emaObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parametro getParEstado() {
|
||||||
|
return parEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParEstado(Parametro parEstado) {
|
||||||
|
this.parEstado = parEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PlantillaSmtp getPlsmCodigo() {
|
||||||
|
return plsmCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlsmCodigo(PlantillaSmtp plsmCodigo) {
|
||||||
|
this.plsmCodigo = plsmCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (emaCodigo != null ? emaCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Email)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Email other = (Email) object;
|
||||||
|
if ((this.emaCodigo == null && other.emaCodigo != null) || (this.emaCodigo != null && !this.emaCodigo.equals(other.emaCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Email[ emaCodigo=" + emaCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,316 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "EMPRESA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Empresa.findAll", query = "SELECT e FROM Empresa e")})
|
||||||
|
public class Empresa implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55824522353104L;
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "EMP_CODIGO")
|
||||||
|
private Integer empCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "EMP_IDENTIFICACION")
|
||||||
|
private String empIdentificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull()
|
||||||
|
@Size(min = 1, max = 255)
|
||||||
|
@Column(name = "EMP_RAZON_SOCIAL")
|
||||||
|
private String empRazonSocial;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 255)
|
||||||
|
@Column(name = "EMP_NOMBRE_COMERCIAL")
|
||||||
|
private String empNombreComercial;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 255)
|
||||||
|
@Column(name = "EMP_CONTACTO")
|
||||||
|
private String empContacto;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "EMP_DIRECCION")
|
||||||
|
private String empDireccion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "EMP_MAIL")
|
||||||
|
private String empMail;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "EMP_TELEFONO")
|
||||||
|
private String empTelefono;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "EMP_COD_CONTRIBUYENTE")
|
||||||
|
private String empCodContribuyente;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "EMP_DESCRIPCION")
|
||||||
|
private String empDescripcion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "EMP_LOGO")
|
||||||
|
private String empLogo;
|
||||||
|
@Lob()
|
||||||
|
@Size(max = 2147483647)
|
||||||
|
@Column(name = "EMP_DINAMICO")
|
||||||
|
private String empDinamico;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "empCodigo")
|
||||||
|
private Collection<Poliza> polizaCollection;
|
||||||
|
@OneToMany(mappedBy = "empCodigo")
|
||||||
|
private Collection<Prestador> prestadorCollection;
|
||||||
|
@OneToMany(mappedBy = "empCodigo")
|
||||||
|
private Collection<Plan> planCollection;
|
||||||
|
@Column(name = "EMP_LLEVA_CONTABILIDAD")
|
||||||
|
private Short empLlevaContabilidad;
|
||||||
|
@OneToMany(mappedBy = "empCodigo")
|
||||||
|
private Collection<PlanBroker> planBrokerCollection;
|
||||||
|
@Column(name = "EMP_ESTADO")
|
||||||
|
private Short empEstado;
|
||||||
|
@OneToMany(mappedBy = "empCodigo")
|
||||||
|
private Collection<Catalogo> catalogoCollection;
|
||||||
|
@OneToMany(mappedBy = "empCodigo")
|
||||||
|
private Collection<Mensaje> mensajeCollection;
|
||||||
|
@JoinColumn(name = "LOC_CODIGO", referencedColumnName = "LOC_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Localizacion locCodigo;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "empCodigo")
|
||||||
|
private Collection<SucursalEmpresa> sucursalEmpresaCollection;
|
||||||
|
|
||||||
|
public Empresa() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa(Integer empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa(Integer empCodigo, String empIdentificacion, String empRazonSocial, String empNombreComercial, String empContacto) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
this.empIdentificacion = empIdentificacion;
|
||||||
|
this.empRazonSocial = empRazonSocial;
|
||||||
|
this.empNombreComercial = empNombreComercial;
|
||||||
|
this.empContacto = empContacto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Integer empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpIdentificacion() {
|
||||||
|
return empIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpIdentificacion(String empIdentificacion) {
|
||||||
|
this.empIdentificacion = empIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpRazonSocial() {
|
||||||
|
return empRazonSocial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpRazonSocial(String empRazonSocial) {
|
||||||
|
this.empRazonSocial = empRazonSocial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpNombreComercial() {
|
||||||
|
return empNombreComercial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpNombreComercial(String empNombreComercial) {
|
||||||
|
this.empNombreComercial = empNombreComercial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpContacto() {
|
||||||
|
return empContacto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpContacto(String empContacto) {
|
||||||
|
this.empContacto = empContacto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpDireccion() {
|
||||||
|
return empDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpDireccion(String empDireccion) {
|
||||||
|
this.empDireccion = empDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpMail() {
|
||||||
|
return empMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpMail(String empMail) {
|
||||||
|
this.empMail = empMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpTelefono() {
|
||||||
|
return empTelefono;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpTelefono(String empTelefono) {
|
||||||
|
this.empTelefono = empTelefono;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpCodContribuyente() {
|
||||||
|
return empCodContribuyente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodContribuyente(String empCodContribuyente) {
|
||||||
|
this.empCodContribuyente = empCodContribuyente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpDescripcion() {
|
||||||
|
return empDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpDescripcion(String empDescripcion) {
|
||||||
|
this.empDescripcion = empDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpLogo() {
|
||||||
|
return empLogo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpLogo(String empLogo) {
|
||||||
|
this.empLogo = empLogo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpDinamico() {
|
||||||
|
return empDinamico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpDinamico(String empDinamico) {
|
||||||
|
this.empDinamico = empDinamico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getEmpLlevaContabilidad() {
|
||||||
|
return empLlevaContabilidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpLlevaContabilidad(Short empLlevaContabilidad) {
|
||||||
|
this.empLlevaContabilidad = empLlevaContabilidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getEmpEstado() {
|
||||||
|
return empEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpEstado(Short empEstado) {
|
||||||
|
this.empEstado = empEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Catalogo> getCatalogoCollection() {
|
||||||
|
return catalogoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatalogoCollection(Collection<Catalogo> catalogoCollection) {
|
||||||
|
this.catalogoCollection = catalogoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Mensaje> getMensajeCollection() {
|
||||||
|
return mensajeCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMensajeCollection(Collection<Mensaje> mensajeCollection) {
|
||||||
|
this.mensajeCollection = mensajeCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Localizacion getLocCodigo() {
|
||||||
|
return locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocCodigo(Localizacion locCodigo) {
|
||||||
|
this.locCodigo = locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<SucursalEmpresa> getSucursalEmpresaCollection() {
|
||||||
|
return sucursalEmpresaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucursalEmpresaCollection(Collection<SucursalEmpresa> sucursalEmpresaCollection) {
|
||||||
|
this.sucursalEmpresaCollection = sucursalEmpresaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Poliza> getPolizaCollection() {
|
||||||
|
return polizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolizaCollection(Collection<Poliza> polizaCollection) {
|
||||||
|
this.polizaCollection = polizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Prestador> getPrestadorCollection() {
|
||||||
|
return prestadorCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrestadorCollection(Collection<Prestador> prestadorCollection) {
|
||||||
|
this.prestadorCollection = prestadorCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Plan> getPlanCollection() {
|
||||||
|
return planCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanCollection(Collection<Plan> planCollection) {
|
||||||
|
this.planCollection = planCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<PlanBroker> getPlanBrokerCollection() {
|
||||||
|
return planBrokerCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanBrokerCollection(Collection<PlanBroker> planBrokerCollection) {
|
||||||
|
this.planBrokerCollection = planBrokerCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,161 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "ESTADO_AGENDAMIENTO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "EstadoAgendamiento.findAll", query = "SELECT e FROM EstadoAgendamiento e")})
|
||||||
|
public class EstadoAgendamiento implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 20754184219789L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "ESA_CODIGO")
|
||||||
|
private Integer esaCodigo;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "ESA_OBSERVACION")
|
||||||
|
private String esaObservacion;
|
||||||
|
@Column(name = "ESA_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date esaFechaInicio;
|
||||||
|
@Column(name = "ESA_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date esaFechaFin;
|
||||||
|
@Column(name = "ESA_ESTADO")
|
||||||
|
private Short esaEstado;
|
||||||
|
@JoinColumn(name = "AGE_CODIGO", referencedColumnName = "AGE_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Agendamiento ageCodigo;
|
||||||
|
@JoinColumn(name = "DET_ESTADO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detEstado;
|
||||||
|
@JoinColumn(name = "USU_CODIGO", referencedColumnName = "USU_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Usuario usuCodigo;
|
||||||
|
|
||||||
|
public EstadoAgendamiento() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public EstadoAgendamiento(Integer esaCodigo) {
|
||||||
|
this.esaCodigo = esaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEsaCodigo() {
|
||||||
|
return esaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEsaCodigo(Integer esaCodigo) {
|
||||||
|
this.esaCodigo = esaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEsaObservacion() {
|
||||||
|
return esaObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEsaObservacion(String esaObservacion) {
|
||||||
|
this.esaObservacion = esaObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEsaFechaInicio() {
|
||||||
|
return esaFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEsaFechaInicio(Date esaFechaInicio) {
|
||||||
|
this.esaFechaInicio = esaFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEsaFechaFin() {
|
||||||
|
return esaFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEsaFechaFin(Date esaFechaFin) {
|
||||||
|
this.esaFechaFin = esaFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getEsaEstado() {
|
||||||
|
return esaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEsaEstado(Short esaEstado) {
|
||||||
|
this.esaEstado = esaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Agendamiento getAgeCodigo() {
|
||||||
|
return ageCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgeCodigo(Agendamiento ageCodigo) {
|
||||||
|
this.ageCodigo = ageCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(DetalleCatalogo detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Usuario getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Usuario usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (esaCodigo != null ? esaCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof EstadoAgendamiento)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
EstadoAgendamiento other = (EstadoAgendamiento) object;
|
||||||
|
if ((this.esaCodigo == null && other.esaCodigo != null) || (this.esaCodigo != null && !this.esaCodigo.equals(other.esaCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.erp.model.EstadoAgendamiento[ esaCodigo=" + esaCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,174 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "ESTADO_LIQUIDACION")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "EstadoLiquidacion.findAll", query = "SELECT e FROM EstadoLiquidacion e")})
|
||||||
|
public class EstadoLiquidacion implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8157382163010L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "ESL_CODIGO")
|
||||||
|
private Integer eslCodigo;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 65535)
|
||||||
|
@Column(name = "ESL_MENSAJE")
|
||||||
|
private String eslMensaje;
|
||||||
|
@Column(name = "ESL_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date eslFechaInicio;
|
||||||
|
@Column(name = "ESL_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date eslFechaFin;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "ESL_OBSERVACION")
|
||||||
|
private String eslObservacion;
|
||||||
|
@Column(name = "ESL_ESTADO")
|
||||||
|
private Short eslEstado;
|
||||||
|
@JoinColumn(name = "DET_ESTADO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detEstado;
|
||||||
|
@JoinColumn(name = "LIQ_CODIGO", referencedColumnName = "LIQ_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Liquidacion liqCodigo;
|
||||||
|
@JoinColumn(name = "USU_CODIGO", referencedColumnName = "USU_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Usuario usuCodigo;
|
||||||
|
|
||||||
|
public EstadoLiquidacion() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public EstadoLiquidacion(Integer eslCodigo) {
|
||||||
|
this.eslCodigo = eslCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEslCodigo() {
|
||||||
|
return eslCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslCodigo(Integer eslCodigo) {
|
||||||
|
this.eslCodigo = eslCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEslMensaje() {
|
||||||
|
return eslMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslMensaje(String eslMensaje) {
|
||||||
|
this.eslMensaje = eslMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEslFechaInicio() {
|
||||||
|
return eslFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslFechaInicio(Date eslFechaInicio) {
|
||||||
|
this.eslFechaInicio = eslFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEslFechaFin() {
|
||||||
|
return eslFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslFechaFin(Date eslFechaFin) {
|
||||||
|
this.eslFechaFin = eslFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEslObservacion() {
|
||||||
|
return eslObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslObservacion(String eslObservacion) {
|
||||||
|
this.eslObservacion = eslObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getEslEstado() {
|
||||||
|
return eslEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslEstado(Short eslEstado) {
|
||||||
|
this.eslEstado = eslEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(DetalleCatalogo detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Liquidacion getLiqCodigo() {
|
||||||
|
return liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCodigo(Liquidacion liqCodigo) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Usuario getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Usuario usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (eslCodigo != null ? eslCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof EstadoLiquidacion)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
EstadoLiquidacion other = (EstadoLiquidacion) object;
|
||||||
|
if ((this.eslCodigo == null && other.eslCodigo != null) || (this.eslCodigo != null && !this.eslCodigo.equals(other.eslCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.EstadoLiquidacion[ eslCodigo=" + eslCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,160 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "ESTADO_POLIZA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "EstadoPoliza.findAll", query = "SELECT e FROM EstadoPoliza e")})
|
||||||
|
public class EstadoPoliza implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "ESP_CODIGO")
|
||||||
|
private Integer espCodigo;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "ESP_OBSERVACION")
|
||||||
|
private String espObservacion;
|
||||||
|
@Column(name = "ESP_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date espFechaInicio;
|
||||||
|
@Column(name = "ESP_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date espFechaFin;
|
||||||
|
@Column(name = "ESP_ESTADO")
|
||||||
|
private Short espEstado;
|
||||||
|
@JoinColumn(name = "DET_ESTADO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detEstado;
|
||||||
|
@JoinColumn(name = "POL_CODIGO", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Poliza polCodigo;
|
||||||
|
@JoinColumn(name = "USU_CODIGO", referencedColumnName = "USU_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Usuario usuCodigo;
|
||||||
|
|
||||||
|
public EstadoPoliza() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public EstadoPoliza(Integer espCodigo) {
|
||||||
|
this.espCodigo = espCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEspCodigo() {
|
||||||
|
return espCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEspCodigo(Integer espCodigo) {
|
||||||
|
this.espCodigo = espCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEspObservacion() {
|
||||||
|
return espObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEspObservacion(String espObservacion) {
|
||||||
|
this.espObservacion = espObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEspFechaInicio() {
|
||||||
|
return espFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEspFechaInicio(Date espFechaInicio) {
|
||||||
|
this.espFechaInicio = espFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEspFechaFin() {
|
||||||
|
return espFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEspFechaFin(Date espFechaFin) {
|
||||||
|
this.espFechaFin = espFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getEspEstado() {
|
||||||
|
return espEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEspEstado(Short espEstado) {
|
||||||
|
this.espEstado = espEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(DetalleCatalogo detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Poliza polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Usuario getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Usuario usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (espCodigo != null ? espCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof EstadoPoliza)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
EstadoPoliza other = (EstadoPoliza) object;
|
||||||
|
if ((this.espCodigo == null && other.espCodigo != null) || (this.espCodigo != null && !this.espCodigo.equals(other.espCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.erp.model.EstadoPoliza[ espCodigo=" + espCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,230 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "FORMULARIO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Formulario.findAll", query = "SELECT f FROM Formulario f")})
|
||||||
|
public class Formulario implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8165403367184L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "FOR_CODIGO")
|
||||||
|
private Integer forCodigo;
|
||||||
|
@Column(name = "FOR_FECHA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date forFecha;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 2147483647)
|
||||||
|
@Column(name = "FOR_DETALLE")
|
||||||
|
private String forDetalle;
|
||||||
|
@JoinColumn(name = "DET_CIE10", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detCie10;
|
||||||
|
@JoinColumn(name = "LIQ_CODIGO", referencedColumnName = "LIQ_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Liquidacion liqCodigo;
|
||||||
|
@JoinColumn(name = "EMP_CODIGO", referencedColumnName = "EMP_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Empresa empCodigo;
|
||||||
|
@JoinColumn(name = "PRE_CODIGO", referencedColumnName = "PRE_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Prestador preCodigo;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "DET_PROCEDIMIENTO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detProcedimiento;
|
||||||
|
@JoinColumn(name = "PLA_CODIGO", referencedColumnName = "PLA_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Plan plaCodigo;
|
||||||
|
@JoinColumn(name = "POL_CODIGO", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Poliza polCodigo;
|
||||||
|
@JoinColumn(name = "CUE_CODIGO", referencedColumnName = "CUE_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private CuentaBancaria cueCodigo;
|
||||||
|
@JoinColumn(name = "PER_TITULAR", referencedColumnName = "PER_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Persona perTitular;
|
||||||
|
@JoinColumn(name = "PER_PACIENTE", referencedColumnName = "PER_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Persona perPaciente;
|
||||||
|
|
||||||
|
public Formulario() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Formulario(Integer forCodigo) {
|
||||||
|
this.forCodigo = forCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getForCodigo() {
|
||||||
|
return forCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setForCodigo(Integer forCodigo) {
|
||||||
|
this.forCodigo = forCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getForFecha() {
|
||||||
|
return forFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setForFecha(Date forFecha) {
|
||||||
|
this.forFecha = forFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getForDetalle() {
|
||||||
|
return forDetalle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setForDetalle(String forDetalle) {
|
||||||
|
this.forDetalle = forDetalle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetCie10() {
|
||||||
|
return detCie10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetCie10(DetalleCatalogo detCie10) {
|
||||||
|
this.detCie10 = detCie10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Liquidacion getLiqCodigo() {
|
||||||
|
return liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCodigo(Liquidacion liqCodigo) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Empresa empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Prestador getPreCodigo() {
|
||||||
|
return preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreCodigo(Prestador preCodigo) {
|
||||||
|
this.preCodigo = preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetProcedimiento() {
|
||||||
|
return detProcedimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetProcedimiento(DetalleCatalogo detProcedimiento) {
|
||||||
|
this.detProcedimiento = detProcedimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plan getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Plan plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Poliza polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CuentaBancaria getCueCodigo() {
|
||||||
|
return cueCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueCodigo(CuentaBancaria cueCodigo) {
|
||||||
|
this.cueCodigo = cueCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona getPerTitular() {
|
||||||
|
return perTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerTitular(Persona perTitular) {
|
||||||
|
this.perTitular = perTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona getPerPaciente() {
|
||||||
|
return perPaciente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerPaciente(Persona perPaciente) {
|
||||||
|
this.perPaciente = perPaciente;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (forCodigo != null ? forCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Formulario)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Formulario other = (Formulario) object;
|
||||||
|
if ((this.forCodigo == null && other.forCodigo != null) || (this.forCodigo != null && !this.forCodigo.equals(other.forCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Formulario[ forCodigo=" + forCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,168 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "HONORARIO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Honorario.findAll", query = "SELECT h FROM Honorario h")})
|
||||||
|
public class Honorario implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "HON_CODIGO")
|
||||||
|
private Integer honCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 20)
|
||||||
|
@Column(name = "HON_CODHON")
|
||||||
|
private String honCodhon;
|
||||||
|
@Size(max = 2047)
|
||||||
|
@Column(name = "HON_DESCRIPCION")
|
||||||
|
private String honDescripcion;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "HON_UNIDAD")
|
||||||
|
private Double honUnidad;
|
||||||
|
@Column(name = "HON_ANESTECIA")
|
||||||
|
private Double honAnestecia;
|
||||||
|
@Size(max = 1023)
|
||||||
|
@Column(name = "HON_OBSERVACION")
|
||||||
|
private String honObservacion;
|
||||||
|
@Column(name = "HON_ESTADO")
|
||||||
|
private Short honEstado;
|
||||||
|
@JoinColumn(name = "DET_GRUPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detGrupo;
|
||||||
|
|
||||||
|
public Honorario() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Honorario(Integer honCodigo) {
|
||||||
|
this.honCodigo = honCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Honorario(Integer honCodigo, String honCodhon) {
|
||||||
|
this.honCodigo = honCodigo;
|
||||||
|
this.honCodhon = honCodhon;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getHonCodigo() {
|
||||||
|
return honCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonCodigo(Integer honCodigo) {
|
||||||
|
this.honCodigo = honCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHonCodhon() {
|
||||||
|
return honCodhon;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonCodhon(String honCodhon) {
|
||||||
|
this.honCodhon = honCodhon;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHonDescripcion() {
|
||||||
|
return honDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonDescripcion(String honDescripcion) {
|
||||||
|
this.honDescripcion = honDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getHonUnidad() {
|
||||||
|
return honUnidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonUnidad(Double honUnidad) {
|
||||||
|
this.honUnidad = honUnidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getHonAnestecia() {
|
||||||
|
return honAnestecia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonAnestecia(Double honAnestecia) {
|
||||||
|
this.honAnestecia = honAnestecia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHonObservacion() {
|
||||||
|
return honObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonObservacion(String honObservacion) {
|
||||||
|
this.honObservacion = honObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getHonEstado() {
|
||||||
|
return honEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonEstado(Short honEstado) {
|
||||||
|
this.honEstado = honEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetGrupo() {
|
||||||
|
return detGrupo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetGrupo(DetalleCatalogo detGrupo) {
|
||||||
|
this.detGrupo = detGrupo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (honCodigo != null ? honCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Honorario)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Honorario other = (Honorario) object;
|
||||||
|
if ((this.honCodigo == null && other.honCodigo != null) || (this.honCodigo != null && !this.honCodigo.equals(other.honCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.erp.model.Honorario[ honCodigo=" + honCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,152 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "HONORARIO_PLAN")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "HonorarioPlan.findAll", query = "SELECT h FROM HonorarioPlan h")})
|
||||||
|
public class HonorarioPlan implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "HOP_CODIGO")
|
||||||
|
private Integer hopCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "HOP_VALOR")
|
||||||
|
private Double hopValor;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "HOP_MINIMO")
|
||||||
|
private Double hopMinimo;
|
||||||
|
@Column(name = "HOP_MAXIMO")
|
||||||
|
private Double hopMaximo;
|
||||||
|
@Column(name = "HOP_ESTADO")
|
||||||
|
private Short hopEstado;
|
||||||
|
@JoinColumn(name = "PLA_CODIGO", referencedColumnName = "PLA_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Plan plaCodigo;
|
||||||
|
@JoinColumn(name = "DET_ATENCION", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detAtencion;
|
||||||
|
|
||||||
|
|
||||||
|
public HonorarioPlan() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public HonorarioPlan(Integer hopCodigo) {
|
||||||
|
this.hopCodigo = hopCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HonorarioPlan(Integer hopCodigo, double hopValor) {
|
||||||
|
this.hopCodigo = hopCodigo;
|
||||||
|
this.hopValor = hopValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getHopCodigo() {
|
||||||
|
return hopCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHopCodigo(Integer hopCodigo) {
|
||||||
|
this.hopCodigo = hopCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getHopValor() {
|
||||||
|
return hopValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHopValor(Double hopValor) {
|
||||||
|
this.hopValor = hopValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getHopMinimo() {
|
||||||
|
return hopMinimo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHopMinimo(Double hopMinimo) {
|
||||||
|
this.hopMinimo = hopMinimo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getHopMaximo() {
|
||||||
|
return hopMaximo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHopMaximo(Double hopMaximo) {
|
||||||
|
this.hopMaximo = hopMaximo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getHopEstado() {
|
||||||
|
return hopEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHopEstado(Short hopEstado) {
|
||||||
|
this.hopEstado = hopEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plan getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Plan plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetAtencion() {
|
||||||
|
return detAtencion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetAtencion(DetalleCatalogo detAtencion) {
|
||||||
|
this.detAtencion = detAtencion;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (hopCodigo != null ? hopCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof HonorarioPlan)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
HonorarioPlan other = (HonorarioPlan) object;
|
||||||
|
if ((this.hopCodigo == null && other.hopCodigo != null) || (this.hopCodigo != null && !this.hopCodigo.equals(other.hopCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.erp.model.HonorarioPlan[ hopCodigo=" + hopCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,409 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "LIQUIDACION")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Liquidacion.findAll", query = "SELECT l FROM Liquidacion l")})
|
||||||
|
public class Liquidacion implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8181327314346L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "LIQ_CODIGO")
|
||||||
|
private Integer liqCodigo;
|
||||||
|
@Column(name = "LIQ_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaInicio;
|
||||||
|
@Column(name = "LIQ_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaFin;
|
||||||
|
@Column(name = "LIQ_COPAGO")
|
||||||
|
private Double liqCopago;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "LIQ_NEMONICO")
|
||||||
|
private String liqNemonico;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "LIQ_OBSERVACION_AFILIADO")
|
||||||
|
private String liqObservacionAfiliado;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "LIQ_OBSERVACION")
|
||||||
|
private String liqObservacion;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "LIQ_COMPROBANTE_PAGO")
|
||||||
|
private String liqComprobantePago;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "LIQ_REPORTE")
|
||||||
|
private String liqReporte;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "LIQ_RETENCION")
|
||||||
|
private String liqRetencion;
|
||||||
|
@Column(name = "LIQ_RETENIDO")
|
||||||
|
private Double liqRetenido;
|
||||||
|
@Column(name = "LIQ_DEDUCIBLE")
|
||||||
|
private Double liqDeducible;
|
||||||
|
@Column(name = "LIQ_OBJETADO")
|
||||||
|
private Double liqObjetado;
|
||||||
|
@Column(name = "LIQ_TOTAL_LIQUIDADO")
|
||||||
|
private Double liqTotalLiquidado;
|
||||||
|
@Column(name = "LIQ_REGISTRADO")
|
||||||
|
private Double liqRegistrado;
|
||||||
|
@Column(name = "LIQ_FECHA_PAGO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaPago;
|
||||||
|
@Column(name = "LIQ_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaRegistro;
|
||||||
|
@Column(name = "LIQ_FECHA_INCURRENCIA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaIncurrencia;
|
||||||
|
@Column(name = "LIQ_CALIFICACION")
|
||||||
|
private Short liqCalificacion;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "liqCodigo")
|
||||||
|
private Collection<Documento> documentoCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "liqCodigo")
|
||||||
|
private Collection<EstadoLiquidacion> estadoLiquidacionCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "liqCodigo")
|
||||||
|
private Collection<DetalleLiquidacion> detalleLiquidacionCollection;
|
||||||
|
@OneToMany(mappedBy = "liqCodigo")
|
||||||
|
private Collection<Formulario> formularioCollection;
|
||||||
|
@JoinColumn(name = "CUE_ORIGEN", referencedColumnName = "CUE_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private CuentaBancaria cueOrigen;
|
||||||
|
@JoinColumn(name = "CUE_DESTINO", referencedColumnName = "CUE_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private CuentaBancaria cueDestino;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "DET_IFI", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detIfi;
|
||||||
|
@JoinColumn(name = "DET_ATENCION", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detAtencion;
|
||||||
|
@JoinColumn(name = "POL_CODIGO", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Poliza polCodigo;
|
||||||
|
@JoinColumn(name = "PER_BENEFICIARIO", referencedColumnName = "PER_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Persona perBeneficiario;
|
||||||
|
|
||||||
|
public Liquidacion() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona getPerBeneficiario() {
|
||||||
|
return perBeneficiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerBeneficiario(Persona perBeneficiario) {
|
||||||
|
this.perBeneficiario = perBeneficiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Liquidacion(Integer liqCodigo) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Liquidacion(Integer liqCodigo, String liqNemonico) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
this.liqNemonico = liqNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLiqCodigo() {
|
||||||
|
return liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCodigo(Integer liqCodigo) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqNemonico() {
|
||||||
|
return liqNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqNemonico(String liqNemonico) {
|
||||||
|
this.liqNemonico = liqNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqObservacionAfiliado() {
|
||||||
|
return liqObservacionAfiliado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqObservacionAfiliado(String liqObservacionAfiliado) {
|
||||||
|
this.liqObservacionAfiliado = liqObservacionAfiliado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqObservacion() {
|
||||||
|
return liqObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqObservacion(String liqObservacion) {
|
||||||
|
this.liqObservacion = liqObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqObjetado() {
|
||||||
|
return liqObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqObjetado(Double liqObjetado) {
|
||||||
|
this.liqObjetado = liqObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaInicio() {
|
||||||
|
return liqFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaInicio(Date liqFechaInicio) {
|
||||||
|
this.liqFechaInicio = liqFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaFin() {
|
||||||
|
return liqFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaFin(Date liqFechaFin) {
|
||||||
|
this.liqFechaFin = liqFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqCopago() {
|
||||||
|
return liqCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCopago(Double liqCopago) {
|
||||||
|
this.liqCopago = liqCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqRetenido() {
|
||||||
|
return liqRetenido;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqRetenido(Double liqRetenido) {
|
||||||
|
this.liqRetenido = liqRetenido;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqDeducible() {
|
||||||
|
return liqDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqDeducible(Double liqDeducible) {
|
||||||
|
this.liqDeducible = liqDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqReporte() {
|
||||||
|
return liqReporte;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqReporte(String liqReporte) {
|
||||||
|
this.liqReporte = liqReporte;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqRetencion() {
|
||||||
|
return liqRetencion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqRetencion(String liqRetencion) {
|
||||||
|
this.liqRetencion = liqRetencion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqRegistrado() {
|
||||||
|
return liqRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqRegistrado(Double liqRegistrado) {
|
||||||
|
this.liqRegistrado = liqRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqTotalLiquidado() {
|
||||||
|
return liqTotalLiquidado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqTotalLiquidado(Double liqTotalLiquidado) {
|
||||||
|
this.liqTotalLiquidado = liqTotalLiquidado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqComprobantePago() {
|
||||||
|
return liqComprobantePago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqComprobantePago(String liqComprobantePago) {
|
||||||
|
this.liqComprobantePago = liqComprobantePago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaPago() {
|
||||||
|
return liqFechaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaPago(Date liqFechaPago) {
|
||||||
|
this.liqFechaPago = liqFechaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaRegistro() {
|
||||||
|
return liqFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaRegistro(Date liqFechaRegistro) {
|
||||||
|
this.liqFechaRegistro = liqFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getLiqCalificacion() {
|
||||||
|
return liqCalificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCalificacion(Short liqCalificacion) {
|
||||||
|
this.liqCalificacion = liqCalificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Documento> getDocumentoCollection() {
|
||||||
|
return documentoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocumentoCollection(Collection<Documento> documentoCollection) {
|
||||||
|
this.documentoCollection = documentoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<EstadoLiquidacion> getEstadoLiquidacionCollection() {
|
||||||
|
return estadoLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoLiquidacionCollection(Collection<EstadoLiquidacion> estadoLiquidacionCollection) {
|
||||||
|
this.estadoLiquidacionCollection = estadoLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<DetalleLiquidacion> getDetalleLiquidacionCollection() {
|
||||||
|
return detalleLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetalleLiquidacionCollection(Collection<DetalleLiquidacion> detalleLiquidacionCollection) {
|
||||||
|
this.detalleLiquidacionCollection = detalleLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Formulario> getFormularioCollection() {
|
||||||
|
return formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaIncurrencia() {
|
||||||
|
return liqFechaIncurrencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaIncurrencia(Date liqFechaIncurrencia) {
|
||||||
|
this.liqFechaIncurrencia = liqFechaIncurrencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormularioCollection(Collection<Formulario> formularioCollection) {
|
||||||
|
this.formularioCollection = formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CuentaBancaria getCueOrigen() {
|
||||||
|
return cueOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueOrigen(CuentaBancaria cueOrigen) {
|
||||||
|
this.cueOrigen = cueOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CuentaBancaria getCueDestino() {
|
||||||
|
return cueDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueDestino(CuentaBancaria cueDestino) {
|
||||||
|
this.cueDestino = cueDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(DetalleCatalogo detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Poliza polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetAtencion() {
|
||||||
|
return detAtencion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetAtencion(DetalleCatalogo detAtencion) {
|
||||||
|
this.detAtencion = detAtencion;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (liqCodigo != null ? liqCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Liquidacion)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Liquidacion other = (Liquidacion) object;
|
||||||
|
if ((this.liqCodigo == null && other.liqCodigo != null) || (this.liqCodigo != null && !this.liqCodigo.equals(other.liqCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Liquidacion[ liqCodigo=" + liqCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,189 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "LOCALIZACION")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Localizacion.findAll", query = "SELECT l FROM Localizacion l")})
|
||||||
|
public class Localizacion implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55768893375418L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 20)
|
||||||
|
@Column(name = "LOC_CODIGO")
|
||||||
|
private String locCodigo;
|
||||||
|
@Size(max = 15)
|
||||||
|
@Column(name = "LOC_CODIGO_DPA")
|
||||||
|
private String locCodigoDpa;
|
||||||
|
@Size(max = 15)
|
||||||
|
@Column(name = "LOC_CODIGO_ISO")
|
||||||
|
private String locCodigoIso;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "LOC_CODIGO_EXT")
|
||||||
|
private String locCodigoExt;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "LOC_NOMBRE")
|
||||||
|
private String locNombre;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "LOC_DESCRIPCION")
|
||||||
|
private String locDescripcion;
|
||||||
|
@Column(name = "LOC_ESTADO")
|
||||||
|
private Short locEstado;
|
||||||
|
@OneToMany(mappedBy = "locCodigo")
|
||||||
|
private Collection<Agendamiento> agendamientoCollection;
|
||||||
|
@OneToMany(mappedBy = "locCodigo")
|
||||||
|
private Collection<Prestador> prestadorCollection;
|
||||||
|
@OneToMany(mappedBy = "locCodigo")
|
||||||
|
private Collection<Persona> personaCollection;
|
||||||
|
@OneToMany(mappedBy = "locCodigo")
|
||||||
|
private Collection<Empresa> empresaCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "locPadre")
|
||||||
|
private Collection<Localizacion> localizacionCollection;
|
||||||
|
@JoinColumn(name = "LOC_PADRE", referencedColumnName = "LOC_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Localizacion locPadre;
|
||||||
|
|
||||||
|
public Localizacion() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Localizacion(String locCodigo) {
|
||||||
|
this.locCodigo = locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocCodigo() {
|
||||||
|
return locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocCodigo(String locCodigo) {
|
||||||
|
this.locCodigo = locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocCodigoDpa() {
|
||||||
|
return locCodigoDpa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocCodigoDpa(String locCodigoDpa) {
|
||||||
|
this.locCodigoDpa = locCodigoDpa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocCodigoIso() {
|
||||||
|
return locCodigoIso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocCodigoIso(String locCodigoIso) {
|
||||||
|
this.locCodigoIso = locCodigoIso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocCodigoExt() {
|
||||||
|
return locCodigoExt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocCodigoExt(String locCodigoExt) {
|
||||||
|
this.locCodigoExt = locCodigoExt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocNombre() {
|
||||||
|
return locNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocNombre(String locNombre) {
|
||||||
|
this.locNombre = locNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocDescripcion() {
|
||||||
|
return locDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocDescripcion(String locDescripcion) {
|
||||||
|
this.locDescripcion = locDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getLocEstado() {
|
||||||
|
return locEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocEstado(Short locEstado) {
|
||||||
|
this.locEstado = locEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Persona> getPersonaCollection() {
|
||||||
|
return personaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonaCollection(Collection<Persona> personaCollection) {
|
||||||
|
this.personaCollection = personaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Empresa> getEmpresaCollection() {
|
||||||
|
return empresaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresaCollection(Collection<Empresa> empresaCollection) {
|
||||||
|
this.empresaCollection = empresaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<Localizacion> getLocalizacionCollection() {
|
||||||
|
return localizacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocalizacionCollection(Collection<Localizacion> localizacionCollection) {
|
||||||
|
this.localizacionCollection = localizacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Localizacion getLocPadre() {
|
||||||
|
return locPadre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocPadre(Localizacion locPadre) {
|
||||||
|
this.locPadre = locPadre;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Agendamiento> getAgendamientoCollection() {
|
||||||
|
return agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgendamientoCollection(Collection<Agendamiento> agendamientoCollection) {
|
||||||
|
this.agendamientoCollection = agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Prestador> getPrestadorCollection() {
|
||||||
|
return prestadorCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrestadorCollection(Collection<Prestador> prestadorCollection) {
|
||||||
|
this.prestadorCollection = prestadorCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,194 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "MENSAJE")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Mensaje.findAll", query = "SELECT m FROM Mensaje m")})
|
||||||
|
public class Mensaje implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55754197612968L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "MEN_CODIGO")
|
||||||
|
private Integer menCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "MEN_NEMONICO")
|
||||||
|
private String menNemonico;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "MEN_NOMBRE")
|
||||||
|
private String menNombre;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 1023)
|
||||||
|
@Column(name = "MEN_MENSAJE")
|
||||||
|
private String menMensaje;
|
||||||
|
@Column(name = "MEN_ESTADO")
|
||||||
|
private Short menEstado;
|
||||||
|
@JoinColumn(name = "DET_IDIOMA", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detIdioma;
|
||||||
|
@JoinColumn(name = "DET_APLICACION", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detAplicacion;
|
||||||
|
@JoinColumn(name = "DET_SERVICIO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detServicio;
|
||||||
|
@JoinColumn(name = "DET_TIPO_MENSAJE", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipoMensaje;
|
||||||
|
@JoinColumn(name = "EMP_CODIGO", referencedColumnName = "EMP_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Empresa empCodigo;
|
||||||
|
|
||||||
|
public Mensaje() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Mensaje(Integer menCodigo) {
|
||||||
|
this.menCodigo = menCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Mensaje(Integer menCodigo, String menNemonico, String menNombre, String menMensaje) {
|
||||||
|
this.menCodigo = menCodigo;
|
||||||
|
this.menNemonico = menNemonico;
|
||||||
|
this.menNombre = menNombre;
|
||||||
|
this.menMensaje = menMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMenCodigo() {
|
||||||
|
return menCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMenCodigo(Integer menCodigo) {
|
||||||
|
this.menCodigo = menCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMenNemonico() {
|
||||||
|
return menNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMenNemonico(String menNemonico) {
|
||||||
|
this.menNemonico = menNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMenNombre() {
|
||||||
|
return menNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMenNombre(String menNombre) {
|
||||||
|
this.menNombre = menNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMenMensaje() {
|
||||||
|
return menMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMenMensaje(String menMensaje) {
|
||||||
|
this.menMensaje = menMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getMenEstado() {
|
||||||
|
return menEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMenEstado(Short menEstado) {
|
||||||
|
this.menEstado = menEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetIdioma() {
|
||||||
|
return detIdioma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIdioma(DetalleCatalogo detIdioma) {
|
||||||
|
this.detIdioma = detIdioma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetAplicacion() {
|
||||||
|
return detAplicacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetAplicacion(DetalleCatalogo detAplicacion) {
|
||||||
|
this.detAplicacion = detAplicacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetServicio() {
|
||||||
|
return detServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetServicio(DetalleCatalogo detServicio) {
|
||||||
|
this.detServicio = detServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipoMensaje() {
|
||||||
|
return detTipoMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoMensaje(DetalleCatalogo detTipoMensaje) {
|
||||||
|
this.detTipoMensaje = detTipoMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Empresa empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (menCodigo != null ? menCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Mensaje)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Mensaje other = (Mensaje) object;
|
||||||
|
if ((this.menCodigo == null && other.menCodigo != null) || (this.menCodigo != null && !this.menCodigo.equals(other.menCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Mensaje[ menCodigo=" + menCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,233 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "OPCION")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Opcion.findAll", query = "SELECT o FROM Opcion o")})
|
||||||
|
public class Opcion implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8200391081348L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "OPC_CODIGO")
|
||||||
|
private Integer opcCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "OPC_NEMONICO")
|
||||||
|
private String opcNemonico;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "OPC_NOMBRE")
|
||||||
|
private String opcNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "OPC_ICONO")
|
||||||
|
private String opcIcono;
|
||||||
|
@Column(name = "OPC_ORDEN")
|
||||||
|
private Short opcOrden;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "OPC_DESCRIPCION")
|
||||||
|
private String opcDescripcion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 1023)
|
||||||
|
@Column(name = "OPC_EJECUCION")
|
||||||
|
private String opcEjecucion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 1023)
|
||||||
|
@Column(name = "OPC_COMANDO")
|
||||||
|
private String opcComando;
|
||||||
|
@Column(name = "OPC_ESTADO")
|
||||||
|
private Short opcEstado;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "opcCodigo")
|
||||||
|
private Collection<Privilegio> privilegioCollection;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@OneToMany(mappedBy = "opcPadre")
|
||||||
|
private Collection<Opcion> opcionCollection;
|
||||||
|
@JoinColumn(name = "OPC_PADRE", referencedColumnName = "OPC_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Opcion opcPadre;
|
||||||
|
|
||||||
|
public Opcion() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Opcion(Integer opcCodigo) {
|
||||||
|
this.opcCodigo = opcCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Opcion(Integer opcCodigo, String opcNemonico, String opcNombre, String opcEjecucion, String opcComando) {
|
||||||
|
this.opcCodigo = opcCodigo;
|
||||||
|
this.opcNemonico = opcNemonico;
|
||||||
|
this.opcNombre = opcNombre;
|
||||||
|
this.opcEjecucion = opcEjecucion;
|
||||||
|
this.opcComando = opcComando;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOpcCodigo() {
|
||||||
|
return opcCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcCodigo(Integer opcCodigo) {
|
||||||
|
this.opcCodigo = opcCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpcNemonico() {
|
||||||
|
return opcNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcNemonico(String opcNemonico) {
|
||||||
|
this.opcNemonico = opcNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpcNombre() {
|
||||||
|
return opcNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcNombre(String opcNombre) {
|
||||||
|
this.opcNombre = opcNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpcDescripcion() {
|
||||||
|
return opcDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcDescripcion(String opcDescripcion) {
|
||||||
|
this.opcDescripcion = opcDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpcEjecucion() {
|
||||||
|
return opcEjecucion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcEjecucion(String opcEjecucion) {
|
||||||
|
this.opcEjecucion = opcEjecucion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpcIcono() {
|
||||||
|
return opcIcono;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcIcono(String opcIcono) {
|
||||||
|
this.opcIcono = opcIcono;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getOpcOrden() {
|
||||||
|
return opcOrden;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcOrden(Short opcOrden) {
|
||||||
|
this.opcOrden = opcOrden;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOpcComando() {
|
||||||
|
return opcComando;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcComando(String opcComando) {
|
||||||
|
this.opcComando = opcComando;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getOpcEstado() {
|
||||||
|
return opcEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcEstado(Short opcEstado) {
|
||||||
|
this.opcEstado = opcEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Privilegio> getPrivilegioCollection() {
|
||||||
|
return privilegioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrivilegioCollection(Collection<Privilegio> privilegioCollection) {
|
||||||
|
this.privilegioCollection = privilegioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Opcion> getOpcionCollection() {
|
||||||
|
return opcionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcionCollection(Collection<Opcion> opcionCollection) {
|
||||||
|
this.opcionCollection = opcionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Opcion getOpcPadre() {
|
||||||
|
return opcPadre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcPadre(Opcion opcPadre) {
|
||||||
|
this.opcPadre = opcPadre;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (opcCodigo != null ? opcCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Opcion)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Opcion other = (Opcion) object;
|
||||||
|
if ((this.opcCodigo == null && other.opcCodigo != null) || (this.opcCodigo != null && !this.opcCodigo.equals(other.opcCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Opcion[ opcCodigo=" + opcCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,203 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "OTP")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Otp.findAll", query = "SELECT o FROM Otp o")})
|
||||||
|
public class Otp implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8223946605195L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "OTP_CODIGO")
|
||||||
|
private Integer otpCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "OPT_UUID")
|
||||||
|
private String optUuid;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 255)
|
||||||
|
@Column(name = "OPT_VALOR")
|
||||||
|
private String optValor;
|
||||||
|
@Column(name = "OTP_TIEMPO_VIDA")
|
||||||
|
private Integer otpTiempoVida;
|
||||||
|
@Column(name = "OTP_INTENTOS")
|
||||||
|
private Integer otpIntentos;
|
||||||
|
@Column(name = "OTP_MAX_INTENTOS")
|
||||||
|
private Integer otpMaxIntentos;
|
||||||
|
@Column(name = "OTP_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date otpFechaRegistro;
|
||||||
|
@Column(name = "OTP_FECHA_NOTIFICACION")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date otpFechaNotificacion;
|
||||||
|
@Column(name = "OTP_FECHA_VALIDACION")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date otpFechaValidacion;
|
||||||
|
@JoinColumn(name = "PAR_ESTADO", referencedColumnName = "PAR_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Parametro parEstado;
|
||||||
|
@JoinColumn(name = "PAR_TIPO", referencedColumnName = "PAR_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Parametro parTipo;
|
||||||
|
|
||||||
|
public Otp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Otp(Integer otpCodigo) {
|
||||||
|
this.otpCodigo = otpCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Otp(Integer otpCodigo, String optUuid, String optValor) {
|
||||||
|
this.otpCodigo = otpCodigo;
|
||||||
|
this.optUuid = optUuid;
|
||||||
|
this.optValor = optValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOtpCodigo() {
|
||||||
|
return otpCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpCodigo(Integer otpCodigo) {
|
||||||
|
this.otpCodigo = otpCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOptUuid() {
|
||||||
|
return optUuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOptUuid(String optUuid) {
|
||||||
|
this.optUuid = optUuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOptValor() {
|
||||||
|
return optValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOptValor(String optValor) {
|
||||||
|
this.optValor = optValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOtpTiempoVida() {
|
||||||
|
return otpTiempoVida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpTiempoVida(Integer otpTiempoVida) {
|
||||||
|
this.otpTiempoVida = otpTiempoVida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOtpIntentos() {
|
||||||
|
return otpIntentos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpIntentos(Integer otpIntentos) {
|
||||||
|
this.otpIntentos = otpIntentos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOtpMaxIntentos() {
|
||||||
|
return otpMaxIntentos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpMaxIntentos(Integer otpMaxIntentos) {
|
||||||
|
this.otpMaxIntentos = otpMaxIntentos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getOtpFechaRegistro() {
|
||||||
|
return otpFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpFechaRegistro(Date otpFechaRegistro) {
|
||||||
|
this.otpFechaRegistro = otpFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getOtpFechaNotificacion() {
|
||||||
|
return otpFechaNotificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpFechaNotificacion(Date otpFechaNotificacion) {
|
||||||
|
this.otpFechaNotificacion = otpFechaNotificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getOtpFechaValidacion() {
|
||||||
|
return otpFechaValidacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpFechaValidacion(Date otpFechaValidacion) {
|
||||||
|
this.otpFechaValidacion = otpFechaValidacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parametro getParEstado() {
|
||||||
|
return parEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParEstado(Parametro parEstado) {
|
||||||
|
this.parEstado = parEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parametro getParTipo() {
|
||||||
|
return parTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParTipo(Parametro parTipo) {
|
||||||
|
this.parTipo = parTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (otpCodigo != null ? otpCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Otp)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Otp other = (Otp) object;
|
||||||
|
if ((this.otpCodigo == null && other.otpCodigo != null) || (this.otpCodigo != null && !this.otpCodigo.equals(other.otpCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Otp[ otpCodigo=" + otpCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,219 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PAGO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Pago.findAll", query = "SELECT p FROM Pago p")})
|
||||||
|
public class Pago implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8235641431799L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PAG_CODIGO")
|
||||||
|
private Integer pagCodigo;
|
||||||
|
@Column(name = "PAG_FECHA_PAGO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date pagFechaPago;
|
||||||
|
@Column(name = "PAG_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date pagFechaRegistro;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PAG_MONTO")
|
||||||
|
private Double pagMonto;
|
||||||
|
@Column(name = "PAG_FAC_ODO")
|
||||||
|
private Integer pagFacOdo;
|
||||||
|
@Column(name = "PAG_OBSERVACION")
|
||||||
|
private String pagObservacion;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "PAG_AUXILIAR")
|
||||||
|
private Double pagAuxiliar;
|
||||||
|
@Column(name = "PAG_OFFSET")
|
||||||
|
private Double pagOffset;
|
||||||
|
@Column(name = "PAG_NUM_PAGO")
|
||||||
|
private Short pagNumPago;
|
||||||
|
@Column(name = "PAG_FECHA_VENCIMIENTO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date pagFechaVencimiento;
|
||||||
|
@Column(name = "PAG_NOTIFICACION_PAGO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date pagNotificacionPago;
|
||||||
|
@JoinColumn(name = "DET_ESTADO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detEstado;
|
||||||
|
@JoinColumn(name = "POL_CODIGO", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Poliza polCodigo;
|
||||||
|
|
||||||
|
public Pago() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPagNumPago() {
|
||||||
|
return pagNumPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagNumPago(Short pagNumPago) {
|
||||||
|
this.pagNumPago = pagNumPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pago(Integer pagCodigo) {
|
||||||
|
this.pagCodigo = pagCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pago(Integer pagCodigo, Double pagMonto) {
|
||||||
|
this.pagCodigo = pagCodigo;
|
||||||
|
this.pagMonto = pagMonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPagFacOdo() {
|
||||||
|
return pagFacOdo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagFacOdo(Integer pagFacOdo) {
|
||||||
|
this.pagFacOdo = pagFacOdo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPagCodigo() {
|
||||||
|
return pagCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagCodigo(Integer pagCodigo) {
|
||||||
|
this.pagCodigo = pagCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPagFechaPago() {
|
||||||
|
return pagFechaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagFechaPago(Date pagFechaPago) {
|
||||||
|
this.pagFechaPago = pagFechaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagFechaRegistro(Date pagFechaRegistro) {
|
||||||
|
this.pagFechaRegistro = pagFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPagFechaRegistro() {
|
||||||
|
return pagFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPagObservacion() {
|
||||||
|
return pagObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagObservacion(String pagObservacion) {
|
||||||
|
this.pagObservacion = pagObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPagMonto() {
|
||||||
|
return pagMonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagMonto(Double pagMonto) {
|
||||||
|
this.pagMonto = pagMonto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPagAuxiliar() {
|
||||||
|
return pagAuxiliar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagAuxiliar(Double pagAuxiliar) {
|
||||||
|
this.pagAuxiliar = pagAuxiliar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPagOffset() {
|
||||||
|
return pagOffset;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagOffset(Double pagOffset) {
|
||||||
|
this.pagOffset = pagOffset;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPagFechaVencimiento() {
|
||||||
|
return pagFechaVencimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagFechaVencimiento(Date pagFechaVencimiento) {
|
||||||
|
this.pagFechaVencimiento = pagFechaVencimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPagNotificacionPago() {
|
||||||
|
return pagNotificacionPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagNotificacionPago(Date pagNotificacionPago) {
|
||||||
|
this.pagNotificacionPago = pagNotificacionPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(DetalleCatalogo detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Poliza polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (pagCodigo != null ? pagCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Pago)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Pago other = (Pago) object;
|
||||||
|
if ((this.pagCodigo == null && other.pagCodigo != null) || (this.pagCodigo != null && !this.pagCodigo.equals(other.pagCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Pago[ pagCodigo=" + pagCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,237 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PARAMETRO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Parametro.findAll", query = "SELECT p FROM Parametro p")})
|
||||||
|
public class Parametro implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8256565241646L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PAR_CODIGO")
|
||||||
|
private Integer parCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 6)
|
||||||
|
@Column(name = "PAR_NEMONICO")
|
||||||
|
private String parNemonico;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PAR_TIPO")
|
||||||
|
private String parTipo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PAR_NOMBRE")
|
||||||
|
private String parNombre;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "PAR_DESCRIPCION")
|
||||||
|
private String parDescripcion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 4096)
|
||||||
|
@Column(name = "PAR_VALOR")
|
||||||
|
private String parValor;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PAR_ESTADO")
|
||||||
|
private Short parEstado;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "parEstado")
|
||||||
|
private Collection<Otp> otpCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "parTipo")
|
||||||
|
private Collection<Otp> otpCollection1;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "parEstado")
|
||||||
|
private Collection<Email> emailCollection;
|
||||||
|
@OneToMany(mappedBy = "parCodigoPadre")
|
||||||
|
private Collection<Parametro> parametroCollection;
|
||||||
|
@JoinColumn(name = "PAR_CODIGO_PADRE", referencedColumnName = "PAR_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Parametro parCodigoPadre;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "parCodigo")
|
||||||
|
private Collection<PlantillaSmtp> plantillaSmtpCollection;
|
||||||
|
|
||||||
|
public Parametro() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parametro(Integer parCodigo) {
|
||||||
|
this.parCodigo = parCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parametro(Integer parCodigo, String parNemonico, String parTipo, String parNombre, String parValor, Short parEstado) {
|
||||||
|
this.parCodigo = parCodigo;
|
||||||
|
this.parNemonico = parNemonico;
|
||||||
|
this.parTipo = parTipo;
|
||||||
|
this.parNombre = parNombre;
|
||||||
|
this.parValor = parValor;
|
||||||
|
this.parEstado = parEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getParCodigo() {
|
||||||
|
return parCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParCodigo(Integer parCodigo) {
|
||||||
|
this.parCodigo = parCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParNemonico() {
|
||||||
|
return parNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParNemonico(String parNemonico) {
|
||||||
|
this.parNemonico = parNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParTipo() {
|
||||||
|
return parTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParTipo(String parTipo) {
|
||||||
|
this.parTipo = parTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParNombre() {
|
||||||
|
return parNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParNombre(String parNombre) {
|
||||||
|
this.parNombre = parNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParDescripcion() {
|
||||||
|
return parDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParDescripcion(String parDescripcion) {
|
||||||
|
this.parDescripcion = parDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParValor() {
|
||||||
|
return parValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParValor(String parValor) {
|
||||||
|
this.parValor = parValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getParEstado() {
|
||||||
|
return parEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParEstado(Short parEstado) {
|
||||||
|
this.parEstado = parEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Otp> getOtpCollection() {
|
||||||
|
return otpCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpCollection(Collection<Otp> otpCollection) {
|
||||||
|
this.otpCollection = otpCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Otp> getOtpCollection1() {
|
||||||
|
return otpCollection1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtpCollection1(Collection<Otp> otpCollection1) {
|
||||||
|
this.otpCollection1 = otpCollection1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Email> getEmailCollection() {
|
||||||
|
return emailCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmailCollection(Collection<Email> emailCollection) {
|
||||||
|
this.emailCollection = emailCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Parametro> getParametroCollection() {
|
||||||
|
return parametroCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParametroCollection(Collection<Parametro> parametroCollection) {
|
||||||
|
this.parametroCollection = parametroCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parametro getParCodigoPadre() {
|
||||||
|
return parCodigoPadre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParCodigoPadre(Parametro parCodigoPadre) {
|
||||||
|
this.parCodigoPadre = parCodigoPadre;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<PlantillaSmtp> getPlantillaSmtpCollection() {
|
||||||
|
return plantillaSmtpCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlantillaSmtpCollection(Collection<PlantillaSmtp> plantillaSmtpCollection) {
|
||||||
|
this.plantillaSmtpCollection = plantillaSmtpCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (parCodigo != null ? parCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Parametro)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Parametro other = (Parametro) object;
|
||||||
|
if ((this.parCodigo == null && other.parCodigo != null) || (this.parCodigo != null && !this.parCodigo.equals(other.parCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Parametro[ parCodigo=" + parCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,312 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PERSONA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Persona.findAll", query = "SELECT p FROM Persona p")})
|
||||||
|
public class Persona implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55930082707211L;
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PER_CODIGO")
|
||||||
|
private Integer perCodigo;
|
||||||
|
@Column(name = "PER_ID_ODO")
|
||||||
|
private Integer perIdOdo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "PER_IDENTIFICACION")
|
||||||
|
private String perIdentificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "PER_NOMBRES")
|
||||||
|
private String perNombres;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "PER_APELLIDOS")
|
||||||
|
private String perApellidos;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "PER_NACIONALIDAD")
|
||||||
|
private String perNacionalidad;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PER_DIRECCION")
|
||||||
|
private String perDireccion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PER_MAIL")
|
||||||
|
private String perMail;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 2147483647)
|
||||||
|
@Column(name = "PER_DINAMICO")
|
||||||
|
private String perDinamico;
|
||||||
|
@OneToMany(mappedBy = "perBeneficiario")
|
||||||
|
private Collection<Agendamiento> agendamientoCollection;
|
||||||
|
@Column(name = "PER_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaRegistro;
|
||||||
|
@Column(name = "PER_FECHA_NACIMIENTO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaNacimiento;
|
||||||
|
@Column(name = "PER_ESTADO")
|
||||||
|
private Short perEstado;
|
||||||
|
@JoinColumn(name = "DET_GENERO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detGenero;
|
||||||
|
@JoinColumn(name = "LOC_CODIGO", referencedColumnName = "LOC_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Localizacion locCodigo;
|
||||||
|
|
||||||
|
@JoinColumn(name = "DET_TIPO_IDENTIFICACION", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detTipoIdentificacion;
|
||||||
|
@JoinColumn(name = "DET_ESTADO_POLIZA", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detEstadoPoliza;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "perCodigo")
|
||||||
|
private Collection<CuentaBancaria> cuentaBancariaCollection;
|
||||||
|
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "perCodigo")
|
||||||
|
private Collection<Telefono> telefonoCollection;
|
||||||
|
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "perCodigo")
|
||||||
|
private Collection<PersonaPoliza> personaPolizaCollection;
|
||||||
|
|
||||||
|
public Persona() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona(Integer perCodigo) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona(Integer perCodigo, String perIdentificacion, String perNombres, String perApellidos) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
this.perIdentificacion = perIdentificacion;
|
||||||
|
this.perNombres = perNombres;
|
||||||
|
this.perApellidos = perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPerIdOdo() {
|
||||||
|
return perIdOdo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerIdOdo(Integer perIdOdo) {
|
||||||
|
this.perIdOdo = perIdOdo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPerCodigo() {
|
||||||
|
return perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerCodigo(Integer perCodigo) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerIdentificacion() {
|
||||||
|
return perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerIdentificacion(String perIdentificacion) {
|
||||||
|
this.perIdentificacion = perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerNombres() {
|
||||||
|
return perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerNombres(String perNombres) {
|
||||||
|
this.perNombres = perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerApellidos() {
|
||||||
|
return perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerApellidos(String perApellidos) {
|
||||||
|
this.perApellidos = perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerNacionalidad() {
|
||||||
|
return perNacionalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerNacionalidad(String perNacionalidad) {
|
||||||
|
this.perNacionalidad = perNacionalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerDireccion() {
|
||||||
|
return perDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerDireccion(String perDireccion) {
|
||||||
|
this.perDireccion = perDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerMail() {
|
||||||
|
return perMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerMail(String perMail) {
|
||||||
|
this.perMail = perMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaRegistro() {
|
||||||
|
return perFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaRegistro(Date perFechaRegistro) {
|
||||||
|
this.perFechaRegistro = perFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaNacimiento() {
|
||||||
|
return perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaNacimiento(Date perFechaNacimiento) {
|
||||||
|
this.perFechaNacimiento = perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<CuentaBancaria> getCuentaBancariaCollection() {
|
||||||
|
return cuentaBancariaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCuentaBancariaCollection(Collection<CuentaBancaria> cuentaBancariaCollection) {
|
||||||
|
this.cuentaBancariaCollection = cuentaBancariaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerDinamico() {
|
||||||
|
return perDinamico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerDinamico(String perDinamico) {
|
||||||
|
this.perDinamico = perDinamico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPerEstado() {
|
||||||
|
return perEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerEstado(Short perEstado) {
|
||||||
|
this.perEstado = perEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetGenero() {
|
||||||
|
return detGenero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetGenero(DetalleCatalogo detGenero) {
|
||||||
|
this.detGenero = detGenero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Localizacion getLocCodigo() {
|
||||||
|
return locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocCodigo(Localizacion locCodigo) {
|
||||||
|
this.locCodigo = locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipoIdentificacion() {
|
||||||
|
return detTipoIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoIdentificacion(DetalleCatalogo detTipoIdentificacion) {
|
||||||
|
this.detTipoIdentificacion = detTipoIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetEstadoPoliza() {
|
||||||
|
return detEstadoPoliza;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstadoPoliza(DetalleCatalogo detEstadoPoliza) {
|
||||||
|
this.detEstadoPoliza = detEstadoPoliza;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Collection<Telefono> getTelefonoCollection() {
|
||||||
|
return telefonoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTelefonoCollection(Collection<Telefono> telefonoCollection) {
|
||||||
|
this.telefonoCollection = telefonoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<PersonaPoliza> getPersonaPolizaCollection() {
|
||||||
|
return personaPolizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonaPolizaCollection(Collection<PersonaPoliza> personaPolizaCollection) {
|
||||||
|
this.personaPolizaCollection = personaPolizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (perCodigo != null ? perCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Persona)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Persona other = (Persona) object;
|
||||||
|
if ((this.perCodigo == null && other.perCodigo != null) || (this.perCodigo != null && !this.perCodigo.equals(other.perCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Persona[ perCodigo=" + perCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Agendamiento> getAgendamientoCollection() {
|
||||||
|
return agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgendamientoCollection(Collection<Agendamiento> agendamientoCollection) {
|
||||||
|
this.agendamientoCollection = agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,147 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PERSONA_POLIZA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "PersonaPoliza.findAll", query = "SELECT p FROM PersonaPoliza p")})
|
||||||
|
public class PersonaPoliza implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8275020122456L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PEP_CODIGO")
|
||||||
|
private Integer pepCodigo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PEP_OBSERVACION")
|
||||||
|
private String pepObservacion;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "PEP_MONTO_COBERTURA")
|
||||||
|
private Double pepMontoCobertura;
|
||||||
|
@Column(name = "PEP_ESTADO")
|
||||||
|
private Short pepEstado;
|
||||||
|
@JoinColumn(name = "DET_TIPO_PERSONA", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipoPersona;
|
||||||
|
@JoinColumn(name = "PER_CODIGO", referencedColumnName = "PER_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Persona perCodigo;
|
||||||
|
@JoinColumn(name = "POL_CODIGO", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Poliza polCodigo;
|
||||||
|
|
||||||
|
public PersonaPoliza() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public PersonaPoliza(Integer pepCodigo) {
|
||||||
|
this.pepCodigo = pepCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPepCodigo() {
|
||||||
|
return pepCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepCodigo(Integer pepCodigo) {
|
||||||
|
this.pepCodigo = pepCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPepObservacion() {
|
||||||
|
return pepObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepObservacion(String pepObservacion) {
|
||||||
|
this.pepObservacion = pepObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPepMontoCobertura() {
|
||||||
|
return pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepMontoCobertura(Double pepMontoCobertura) {
|
||||||
|
this.pepMontoCobertura = pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPepEstado() {
|
||||||
|
return pepEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepEstado(Short pepEstado) {
|
||||||
|
this.pepEstado = pepEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipoPersona() {
|
||||||
|
return detTipoPersona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoPersona(DetalleCatalogo detTipoPersona) {
|
||||||
|
this.detTipoPersona = detTipoPersona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona getPerCodigo() {
|
||||||
|
return perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerCodigo(Persona perCodigo) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Poliza polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (pepCodigo != null ? pepCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof PersonaPoliza)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
PersonaPoliza other = (PersonaPoliza) object;
|
||||||
|
if ((this.pepCodigo == null && other.pepCodigo != null) || (this.pepCodigo != null && !this.pepCodigo.equals(other.pepCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.PersonaPoliza[ pepCodigo=" + pepCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,394 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PLAN")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Plan.findAll", query = "SELECT p FROM Plan p")})
|
||||||
|
public class Plan implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8283205025837L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PLA_CODIGO")
|
||||||
|
private Integer plaCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PLA_RUTA_CONTRATO")
|
||||||
|
private String plaRutaContrato;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "PLA_PRODUCTO")
|
||||||
|
private String plaProducto;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "PLA_COD_ACESS")
|
||||||
|
private String plaCodAcess;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "PLA_TIPO")
|
||||||
|
private String plaTipo;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "PLA_COD_EXT")
|
||||||
|
private String plaCodExt;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "PLA_ODDO_IDS")
|
||||||
|
private String plaOddoIds;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_ESTADO")
|
||||||
|
private Short plaEstado;
|
||||||
|
@Column(name = "PLA_IMPUESTO")
|
||||||
|
private Double plaImpuesto;
|
||||||
|
@Column(name = "PLA_VALOR_ANUAL")
|
||||||
|
private Double plaValorAnual;
|
||||||
|
@Column(name = "PLA_VALOR_MENSUAL")
|
||||||
|
private Double plaValorMensual;
|
||||||
|
@Column(name = "PLA_POR_DESCUENTO")
|
||||||
|
private Double plaPorDescuento;
|
||||||
|
@Column(name = "PLA_EDAD_HIJOS")
|
||||||
|
private Integer plaEdadHijos;
|
||||||
|
@Column(name = "PLA_EDAD_TITULAR")
|
||||||
|
private Integer plaEdadTitular;
|
||||||
|
@Column(name = "PLA_EDADMIN_TITULAR")
|
||||||
|
private Integer plaEdadminTitular;
|
||||||
|
@Column(name = "PLA_NUM_BENEFICIARIOS")
|
||||||
|
private Integer plaNumBeneficiarios;
|
||||||
|
@Column(name = "PLA_COBERTURA_MAXIMA")
|
||||||
|
private Double plaCoberturaMaxima;
|
||||||
|
@Column(name = "PLA_VALOR_DEDUCIBLE")
|
||||||
|
private Double plaValorDeducible;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "plaCodigo")
|
||||||
|
private Collection<HonorarioPlan> honorarioPlanCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "plaCodigo")
|
||||||
|
private Collection<PlanBroker> planBrokerCollection;
|
||||||
|
@JoinColumn(name = "EMP_CODIGO", referencedColumnName = "EMP_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Empresa empCodigo;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "DET_MODALIDAD", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detModalidad;
|
||||||
|
@JoinColumn(name = "DET_DEDUCIBLE", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detDeducible;
|
||||||
|
@JoinColumn(name = "DET_TARIFARIO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTarifario;
|
||||||
|
@OneToMany(mappedBy = "plaCodigo")
|
||||||
|
private Collection<Formulario> formularioCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "plaCodigo")
|
||||||
|
private Collection<Poliza> polizaCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "plaCodigo")
|
||||||
|
private Collection<CoberturasPlan> coberturasPlanCollection;
|
||||||
|
|
||||||
|
public Plan() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plan(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plan(Integer plaCodigo, String plaNombre, Short plaEstado) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
this.plaEstado = plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaRutaContrato() {
|
||||||
|
return plaRutaContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaRutaContrato(String plaRutaContrato) {
|
||||||
|
this.plaRutaContrato = plaRutaContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorAnual() {
|
||||||
|
return plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorAnual(Double plaValorAnual) {
|
||||||
|
this.plaValorAnual = plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorMensual() {
|
||||||
|
return plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorMensual(Double plaValorMensual) {
|
||||||
|
this.plaValorMensual = plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaImpuesto() {
|
||||||
|
return plaImpuesto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaImpuesto(Double plaImpuesto) {
|
||||||
|
this.plaImpuesto = plaImpuesto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaCodAcess() {
|
||||||
|
return plaCodAcess;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodAcess(String plaCodAcess) {
|
||||||
|
this.plaCodAcess = plaCodAcess;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaCodExt() {
|
||||||
|
return plaCodExt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodExt(String plaCodExt) {
|
||||||
|
this.plaCodExt = plaCodExt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaPorDescuento() {
|
||||||
|
return plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Empresa empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaPorDescuento(Double plaPorDescuento) {
|
||||||
|
this.plaPorDescuento = plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaEdadHijos() {
|
||||||
|
return plaEdadHijos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEdadHijos(Integer plaEdadHijos) {
|
||||||
|
this.plaEdadHijos = plaEdadHijos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaEdadminTitular() {
|
||||||
|
return plaEdadminTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEdadminTitular(Integer plaEdadminTitular) {
|
||||||
|
this.plaEdadminTitular = plaEdadminTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaEdadTitular() {
|
||||||
|
return plaEdadTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEdadTitular(Integer plaEdadTitular) {
|
||||||
|
this.plaEdadTitular = plaEdadTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaNumBeneficiarios() {
|
||||||
|
return plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNumBeneficiarios(Integer plaNumBeneficiarios) {
|
||||||
|
this.plaNumBeneficiarios = plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaProducto() {
|
||||||
|
return plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaProducto(String plaProducto) {
|
||||||
|
this.plaProducto = plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaCoberturaMaxima() {
|
||||||
|
return plaCoberturaMaxima;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCoberturaMaxima(Double plaCoberturaMaxima) {
|
||||||
|
this.plaCoberturaMaxima = plaCoberturaMaxima;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorDeducible() {
|
||||||
|
return plaValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorDeducible(Double plaValorDeducible) {
|
||||||
|
this.plaValorDeducible = plaValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPlaEstado() {
|
||||||
|
return plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEstado(Short plaEstado) {
|
||||||
|
this.plaEstado = plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaOddoIds() {
|
||||||
|
return plaOddoIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaOddoIds(String plaOddoIds) {
|
||||||
|
this.plaOddoIds = plaOddoIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaTipo() {
|
||||||
|
return plaTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaTipo(String plaTipo) {
|
||||||
|
this.plaTipo = plaTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetModalidad() {
|
||||||
|
return detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetModalidad(DetalleCatalogo detModalidad) {
|
||||||
|
this.detModalidad = detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetDeducible() {
|
||||||
|
return detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDeducible(DetalleCatalogo detDeducible) {
|
||||||
|
this.detDeducible = detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTarifario() {
|
||||||
|
return detTarifario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTarifario(DetalleCatalogo detTarifario) {
|
||||||
|
this.detTarifario = detTarifario;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Formulario> getFormularioCollection() {
|
||||||
|
return formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormularioCollection(Collection<Formulario> formularioCollection) {
|
||||||
|
this.formularioCollection = formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Poliza> getPolizaCollection() {
|
||||||
|
return polizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolizaCollection(Collection<Poliza> polizaCollection) {
|
||||||
|
this.polizaCollection = polizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<CoberturasPlan> getCoberturasPlanCollection() {
|
||||||
|
return coberturasPlanCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCoberturasPlanCollection(Collection<CoberturasPlan> coberturasPlanCollection) {
|
||||||
|
this.coberturasPlanCollection = coberturasPlanCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (plaCodigo != null ? plaCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Plan)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Plan other = (Plan) object;
|
||||||
|
if ((this.plaCodigo == null && other.plaCodigo != null) || (this.plaCodigo != null && !this.plaCodigo.equals(other.plaCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Plan[ plaCodigo=" + plaCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<PlanBroker> getPlanBrokerCollection() {
|
||||||
|
return planBrokerCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlanBrokerCollection(Collection<PlanBroker> planBrokerCollection) {
|
||||||
|
this.planBrokerCollection = planBrokerCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<HonorarioPlan> getHonorarioPlanCollection() {
|
||||||
|
return honorarioPlanCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonorarioPlanCollection(Collection<HonorarioPlan> honorarioPlanCollection) {
|
||||||
|
this.honorarioPlanCollection = honorarioPlanCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,146 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PLAN_BROKER")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "PlanBroker.findAll", query = "SELECT p FROM PlanBroker p")})
|
||||||
|
public class PlanBroker implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 31951907067348L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PLB_CODIGO")
|
||||||
|
private Integer plbCodigo;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "PLB_DESCUENTO")
|
||||||
|
private Double plbDescuento;
|
||||||
|
@Column(name = "PLB_OFERTA")
|
||||||
|
private Double plbOferta;
|
||||||
|
@Size(max = 511)
|
||||||
|
@Column(name = "PLB_OBSERVACION")
|
||||||
|
private String plbObservacion;
|
||||||
|
@Column(name = "PLB_ESTADO")
|
||||||
|
private Short plbEstado;
|
||||||
|
@JoinColumn(name = "EMP_CODIGO", referencedColumnName = "EMP_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Empresa empCodigo;
|
||||||
|
@JoinColumn(name = "PLA_CODIGO", referencedColumnName = "PLA_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Plan plaCodigo;
|
||||||
|
|
||||||
|
public PlanBroker() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public PlanBroker(Integer plbCodigo) {
|
||||||
|
this.plbCodigo = plbCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlbCodigo() {
|
||||||
|
return plbCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlbCodigo(Integer plbCodigo) {
|
||||||
|
this.plbCodigo = plbCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlbDescuento() {
|
||||||
|
return plbDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlbDescuento(Double plbDescuento) {
|
||||||
|
this.plbDescuento = plbDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlbOferta() {
|
||||||
|
return plbOferta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlbOferta(Double plbOferta) {
|
||||||
|
this.plbOferta = plbOferta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlbObservacion() {
|
||||||
|
return plbObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlbObservacion(String plbObservacion) {
|
||||||
|
this.plbObservacion = plbObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPlbEstado() {
|
||||||
|
return plbEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlbEstado(Short plbEstado) {
|
||||||
|
this.plbEstado = plbEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Empresa empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plan getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Plan plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (plbCodigo != null ? plbCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof PlanBroker)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
PlanBroker other = (PlanBroker) object;
|
||||||
|
if ((this.plbCodigo == null && other.plbCodigo != null) || (this.plbCodigo != null && !this.plbCodigo.equals(other.plbCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.erp.model.PlanBroker[ plbCodigo=" + plbCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,177 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PLANTILLA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Plantilla.findAll", query = "SELECT p FROM Plantilla p")})
|
||||||
|
public class Plantilla implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8289976734402L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PLA_CODIGO")
|
||||||
|
private Integer plaCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 6)
|
||||||
|
@Column(name = "PLA_NEMONICO")
|
||||||
|
private String plaNemonico;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "PLA_ASUNTO")
|
||||||
|
private String plaAsunto;
|
||||||
|
@Size(max = 2048)
|
||||||
|
@Column(name = "PLA_PARAMETROS")
|
||||||
|
private String plaParametros;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 255)
|
||||||
|
@Column(name = "PLA_RUTA")
|
||||||
|
private String plaRuta;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_ESTADO")
|
||||||
|
private Short plaEstado;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "plaCodigo")
|
||||||
|
private Collection<PlantillaSmtp> plantillaSmtpCollection;
|
||||||
|
|
||||||
|
public Plantilla() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plantilla(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plantilla(Integer plaCodigo, String plaNemonico, String plaNombre, String plaRuta, Short plaEstado) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
this.plaNemonico = plaNemonico;
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
this.plaRuta = plaRuta;
|
||||||
|
this.plaEstado = plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNemonico() {
|
||||||
|
return plaNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNemonico(String plaNemonico) {
|
||||||
|
this.plaNemonico = plaNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaAsunto() {
|
||||||
|
return plaAsunto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaAsunto(String plaAsunto) {
|
||||||
|
this.plaAsunto = plaAsunto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaParametros() {
|
||||||
|
return plaParametros;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaParametros(String plaParametros) {
|
||||||
|
this.plaParametros = plaParametros;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaRuta() {
|
||||||
|
return plaRuta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaRuta(String plaRuta) {
|
||||||
|
this.plaRuta = plaRuta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPlaEstado() {
|
||||||
|
return plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEstado(Short plaEstado) {
|
||||||
|
this.plaEstado = plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<PlantillaSmtp> getPlantillaSmtpCollection() {
|
||||||
|
return plantillaSmtpCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlantillaSmtpCollection(Collection<PlantillaSmtp> plantillaSmtpCollection) {
|
||||||
|
this.plantillaSmtpCollection = plantillaSmtpCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (plaCodigo != null ? plaCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Plantilla)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Plantilla other = (Plantilla) object;
|
||||||
|
if ((this.plaCodigo == null && other.plaCodigo != null) || (this.plaCodigo != null && !this.plaCodigo.equals(other.plaCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Plantilla[ plaCodigo=" + plaCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,130 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PLANTILLA_SMTP")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "PlantillaSmtp.findAll", query = "SELECT p FROM PlantillaSmtp p")})
|
||||||
|
public class PlantillaSmtp implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8296395093731L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PLSM_CODIGO")
|
||||||
|
private Integer plsmCodigo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PLSM_OBSERVACION")
|
||||||
|
private String plsmObservacion;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "plsmCodigo")
|
||||||
|
private Collection<Email> emailCollection;
|
||||||
|
@JoinColumn(name = "PAR_CODIGO", referencedColumnName = "PAR_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Parametro parCodigo;
|
||||||
|
@JoinColumn(name = "PLA_CODIGO", referencedColumnName = "PLA_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Plantilla plaCodigo;
|
||||||
|
|
||||||
|
public PlantillaSmtp() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public PlantillaSmtp(Integer plsmCodigo) {
|
||||||
|
this.plsmCodigo = plsmCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlsmCodigo() {
|
||||||
|
return plsmCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlsmCodigo(Integer plsmCodigo) {
|
||||||
|
this.plsmCodigo = plsmCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlsmObservacion() {
|
||||||
|
return plsmObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlsmObservacion(String plsmObservacion) {
|
||||||
|
this.plsmObservacion = plsmObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Email> getEmailCollection() {
|
||||||
|
return emailCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmailCollection(Collection<Email> emailCollection) {
|
||||||
|
this.emailCollection = emailCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Parametro getParCodigo() {
|
||||||
|
return parCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParCodigo(Parametro parCodigo) {
|
||||||
|
this.parCodigo = parCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plantilla getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Plantilla plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (plsmCodigo != null ? plsmCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof PlantillaSmtp)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
PlantillaSmtp other = (PlantillaSmtp) object;
|
||||||
|
if ((this.plsmCodigo == null && other.plsmCodigo != null) || (this.plsmCodigo != null && !this.plsmCodigo.equals(other.plsmCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.PlantillaSmtp[ plsmCodigo=" + plsmCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,499 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "POLIZA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Poliza.findAll", query = "SELECT p FROM Poliza p")})
|
||||||
|
public class Poliza implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8303008908952L;
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "POL_CODIGO")
|
||||||
|
private Integer polCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "POL_CONTRATO")
|
||||||
|
private String polContrato;
|
||||||
|
@Size(max = 15)
|
||||||
|
@Column(name = "POL_CERTIFICADO")
|
||||||
|
private String polCertificado;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_BROKER")
|
||||||
|
private String polBroker;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_OBSERVACION")
|
||||||
|
private String polObservacion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_DEBITO")
|
||||||
|
private String polDebito;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_ACEPTACION")
|
||||||
|
private String polAceptacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull()
|
||||||
|
@Column(name = "POL_PREEXISTENCIAS")
|
||||||
|
private Short polPreexistencias;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "POL_DESCRIPCION")
|
||||||
|
private String polDescripcion;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "POL_ORIGEN")
|
||||||
|
private String polOrigen;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "polCodigo")
|
||||||
|
private Collection<EstadoPoliza> estadoPolizaCollection;
|
||||||
|
@Column(name = "POL_FECHA_CANCELA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaCancela;
|
||||||
|
@Column(name = "POL_FECHA_CAMBIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaCambio;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "polCodigo")
|
||||||
|
private Collection<Agendamiento> agendamientoCollection;
|
||||||
|
@OneToMany(mappedBy = "polPadre")
|
||||||
|
private Collection<Poliza> polizaCollection;
|
||||||
|
@JoinColumn(name = "POL_PADRE", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Poliza polPadre;
|
||||||
|
@Column(name = "POL_FECHA_NOTICA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaNotica;
|
||||||
|
@Column(name = "POL_NOTIFICACION_PAGO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polNotificacionPago;
|
||||||
|
@Column(name = "POL_DIAS_COBERTURA")
|
||||||
|
private Integer polDiasCobertura;
|
||||||
|
@Column(name = "POL_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaInicio;
|
||||||
|
@Column(name = "POL_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaFin;
|
||||||
|
@Column(name = "POL_FECHA_ACEPTA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaAcepta;
|
||||||
|
@Column(name = "POL_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaRegistro;
|
||||||
|
@Column(name = "POL_ESTADO")
|
||||||
|
private Short polEstado;
|
||||||
|
@JoinColumn(name = "DET_SUCURSAL_IFI", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detSucursalIfi;
|
||||||
|
@OneToMany(mappedBy = "polCodigo")
|
||||||
|
private Collection<Documento> documentoCollection;
|
||||||
|
@OneToMany(mappedBy = "polCodigo")
|
||||||
|
private Collection<Formulario> formularioCollection;
|
||||||
|
@JoinColumn(name = "DET_FORMA_PAGO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detFormaPago;
|
||||||
|
@JoinColumn(name = "DET_IFI", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detIfi;
|
||||||
|
@JoinColumn(name = "DET_MODALIDAD", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detModalidad;
|
||||||
|
@JoinColumn(name = "DET_PERIODICIDAD", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detPeriodicidad;
|
||||||
|
@JoinColumn(name = "EMP_CODIGO", referencedColumnName = "EMP_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Empresa empCodigo;
|
||||||
|
@JoinColumn(name = "PLA_CODIGO", referencedColumnName = "PLA_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Plan plaCodigo;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "polCodigo")
|
||||||
|
private Collection<Liquidacion> liquidacionCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "polCodigo")
|
||||||
|
private Collection<Servicios> serviciosCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "polCodigo")
|
||||||
|
private Collection<PersonaPoliza> personaPolizaCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "polCodigo")
|
||||||
|
private Collection<Pago> pagoCollection;
|
||||||
|
|
||||||
|
public Poliza() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza(Integer polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza(Integer polCodigo, String polContrato) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
this.polContrato = polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPolPreexistencias() {
|
||||||
|
return polPreexistencias;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolPreexistencias(Short polPreexistencias) {
|
||||||
|
this.polPreexistencias = polPreexistencias;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaCambio() {
|
||||||
|
return polFechaCambio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaCambio(Date polFechaCambio) {
|
||||||
|
this.polFechaCambio = polFechaCambio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Integer polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolContrato() {
|
||||||
|
return polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolOrigen() {
|
||||||
|
return polOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolOrigen(String polOrigen) {
|
||||||
|
this.polOrigen = polOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolContrato(String polContrato) {
|
||||||
|
this.polContrato = polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolCertificado() {
|
||||||
|
return polCertificado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCertificado(String polCertificado) {
|
||||||
|
this.polCertificado = polCertificado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolDiasCobertura() {
|
||||||
|
return polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaCancela() {
|
||||||
|
return polFechaCancela;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaCancela(Date polFechaCancela) {
|
||||||
|
this.polFechaCancela = polFechaCancela;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolAceptacion() {
|
||||||
|
return polAceptacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolAceptacion(String polAceptacion) {
|
||||||
|
this.polAceptacion = polAceptacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaNotica() {
|
||||||
|
return polFechaNotica;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaNotica(Date polFechaNotica) {
|
||||||
|
this.polFechaNotica = polFechaNotica;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolNotificacionPago() {
|
||||||
|
return polNotificacionPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolNotificacionPago(Date polNotificacionPago) {
|
||||||
|
this.polNotificacionPago = polNotificacionPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Date getPolFechaAcepta() {
|
||||||
|
return polFechaAcepta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaAcepta(Date polFechaAcepta) {
|
||||||
|
this.polFechaAcepta = polFechaAcepta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolDiasCobertura(Integer polDiasCobertura) {
|
||||||
|
this.polDiasCobertura = polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolBroker() {
|
||||||
|
return polBroker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolBroker(String polBroker) {
|
||||||
|
this.polBroker = polBroker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolObservacion() {
|
||||||
|
return polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolObservacion(String polObservacion) {
|
||||||
|
this.polObservacion = polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaInicio() {
|
||||||
|
return polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaInicio(Date polFechaInicio) {
|
||||||
|
this.polFechaInicio = polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaFin() {
|
||||||
|
return polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaFin(Date polFechaFin) {
|
||||||
|
this.polFechaFin = polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaRegistro() {
|
||||||
|
return polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaRegistro(Date polFechaRegistro) {
|
||||||
|
this.polFechaRegistro = polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Documento> getDocumentoCollection() {
|
||||||
|
return documentoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDocumentoCollection(Collection<Documento> documentoCollection) {
|
||||||
|
this.documentoCollection = documentoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Formulario> getFormularioCollection() {
|
||||||
|
return formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormularioCollection(Collection<Formulario> formularioCollection) {
|
||||||
|
this.formularioCollection = formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
// public DetalleCatalogo getDetEstado() {
|
||||||
|
// return detEstado;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void setDetEstado(DetalleCatalogo detEstado) {
|
||||||
|
// this.detEstado = detEstado;
|
||||||
|
// }
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetFormaPago() {
|
||||||
|
return detFormaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetFormaPago(DetalleCatalogo detFormaPago) {
|
||||||
|
this.detFormaPago = detFormaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(DetalleCatalogo detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetModalidad() {
|
||||||
|
return detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetModalidad(DetalleCatalogo detModalidad) {
|
||||||
|
this.detModalidad = detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetPeriodicidad() {
|
||||||
|
return detPeriodicidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetPeriodicidad(DetalleCatalogo detPeriodicidad) {
|
||||||
|
this.detPeriodicidad = detPeriodicidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Empresa empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Plan getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Plan plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Liquidacion> getLiquidacionCollection() {
|
||||||
|
return liquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiquidacionCollection(Collection<Liquidacion> liquidacionCollection) {
|
||||||
|
this.liquidacionCollection = liquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Servicios> getServiciosCollection() {
|
||||||
|
return serviciosCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setServiciosCollection(Collection<Servicios> serviciosCollection) {
|
||||||
|
this.serviciosCollection = serviciosCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<PersonaPoliza> getPersonaPolizaCollection() {
|
||||||
|
return personaPolizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPersonaPolizaCollection(Collection<PersonaPoliza> personaPolizaCollection) {
|
||||||
|
this.personaPolizaCollection = personaPolizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Pago> getPagoCollection() {
|
||||||
|
return pagoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagoCollection(Collection<Pago> pagoCollection) {
|
||||||
|
this.pagoCollection = pagoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetSucursalIfi() {
|
||||||
|
return detSucursalIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetSucursalIfi(DetalleCatalogo detSucursalIfi) {
|
||||||
|
this.detSucursalIfi = detSucursalIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolDebito() {
|
||||||
|
return polDebito;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolDebito(String polDebito) {
|
||||||
|
this.polDebito = polDebito;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (polCodigo != null ? polCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
if (!(object instanceof Poliza)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Poliza other = (Poliza) object;
|
||||||
|
if ((this.polCodigo == null && other.polCodigo != null) || (this.polCodigo != null && !this.polCodigo.equals(other.polCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Poliza[ polCodigo=" + polCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolDescripcion() {
|
||||||
|
return polDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolDescripcion(String polDescripcion) {
|
||||||
|
this.polDescripcion = polDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPolEstado() {
|
||||||
|
return polEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolEstado(Short polEstado) {
|
||||||
|
this.polEstado = polEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Agendamiento> getAgendamientoCollection() {
|
||||||
|
return agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgendamientoCollection(Collection<Agendamiento> agendamientoCollection) {
|
||||||
|
this.agendamientoCollection = agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Poliza> getPolizaCollection() {
|
||||||
|
return polizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolizaCollection(Collection<Poliza> polizaCollection) {
|
||||||
|
this.polizaCollection = polizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolPadre() {
|
||||||
|
return polPadre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolPadre(Poliza polPadre) {
|
||||||
|
this.polPadre = polPadre;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<EstadoPoliza> getEstadoPolizaCollection() {
|
||||||
|
return estadoPolizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoPolizaCollection(Collection<EstadoPoliza> estadoPolizaCollection) {
|
||||||
|
this.estadoPolizaCollection = estadoPolizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,252 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PRESTADOR")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Prestador.findAll", query = "SELECT p FROM Prestador p")})
|
||||||
|
public class Prestador implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8311331182593L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PRE_CODIGO")
|
||||||
|
private Integer preCodigo;
|
||||||
|
@Size(max = 15)
|
||||||
|
@Column(name = "PRE_RUC")
|
||||||
|
private String preRuc;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PRE_RAZON_SOCIAL")
|
||||||
|
private String preRazonSocial;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PRE_NOMBRE")
|
||||||
|
private String preNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PRE_CUENTA")
|
||||||
|
private String preCuenta;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "PRE_DIRECCION")
|
||||||
|
private String preDireccion;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "PRE_OBSERVACION")
|
||||||
|
private String preObservacion;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 2147483647)
|
||||||
|
@Column(name = "PRE_DINAMICO")
|
||||||
|
private String preDinamico;
|
||||||
|
@JoinColumn(name = "DET_IFI", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detIfi;
|
||||||
|
@JoinColumn(name = "DET_TIPO_CUENTA", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipoCuenta;
|
||||||
|
@OneToMany(mappedBy = "preCodigo")
|
||||||
|
private Collection<Agendamiento> agendamientoCollection;
|
||||||
|
@JoinColumn(name = "EMP_CODIGO", referencedColumnName = "EMP_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Empresa empCodigo;
|
||||||
|
@OneToMany(mappedBy = "preCodigo")
|
||||||
|
private Collection<DetalleLiquidacion> detalleLiquidacionCollection;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "LOC_CODIGO", referencedColumnName = "LOC_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Localizacion locCodigo;
|
||||||
|
@OneToMany(mappedBy = "preCodigo")
|
||||||
|
private Collection<Formulario> formularioCollection;
|
||||||
|
|
||||||
|
public Prestador() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Prestador(Integer preCodigo) {
|
||||||
|
this.preCodigo = preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPreCodigo() {
|
||||||
|
return preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreCodigo(Integer preCodigo) {
|
||||||
|
this.preCodigo = preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPreRuc() {
|
||||||
|
return preRuc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreRuc(String preRuc) {
|
||||||
|
this.preRuc = preRuc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPreRazonSocial() {
|
||||||
|
return preRazonSocial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreRazonSocial(String preRazonSocial) {
|
||||||
|
this.preRazonSocial = preRazonSocial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPreNombre() {
|
||||||
|
return preNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreNombre(String preNombre) {
|
||||||
|
this.preNombre = preNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPreDireccion() {
|
||||||
|
return preDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreDireccion(String preDireccion) {
|
||||||
|
this.preDireccion = preDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPreDinamico() {
|
||||||
|
return preDinamico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreDinamico(String preDinamico) {
|
||||||
|
this.preDinamico = preDinamico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPreCuenta() {
|
||||||
|
return preCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreCuenta(String preCuenta) {
|
||||||
|
this.preCuenta = preCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(DetalleCatalogo detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipoCuenta() {
|
||||||
|
return detTipoCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoCuenta(DetalleCatalogo detTipoCuenta) {
|
||||||
|
this.detTipoCuenta = detTipoCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPreObservacion() {
|
||||||
|
return preObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreObservacion(String preObservacion) {
|
||||||
|
this.preObservacion = preObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Localizacion getLocCodigo() {
|
||||||
|
return locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLocCodigo(Localizacion locCodigo) {
|
||||||
|
this.locCodigo = locCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<DetalleLiquidacion> getDetalleLiquidacionCollection() {
|
||||||
|
return detalleLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetalleLiquidacionCollection(Collection<DetalleLiquidacion> detalleLiquidacionCollection) {
|
||||||
|
this.detalleLiquidacionCollection = detalleLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Formulario> getFormularioCollection() {
|
||||||
|
return formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormularioCollection(Collection<Formulario> formularioCollection) {
|
||||||
|
this.formularioCollection = formularioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (preCodigo != null ? preCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Prestador)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Prestador other = (Prestador) object;
|
||||||
|
if ((this.preCodigo == null && other.preCodigo != null) || (this.preCodigo != null && !this.preCodigo.equals(other.preCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Prestador[ preCodigo=" + preCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Agendamiento> getAgendamientoCollection() {
|
||||||
|
return agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgendamientoCollection(Collection<Agendamiento> agendamientoCollection) {
|
||||||
|
this.agendamientoCollection = agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Empresa empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,192 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PRIVILEGIO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Privilegio.findAll", query = "SELECT p FROM Privilegio p")})
|
||||||
|
public class Privilegio implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8322366469980L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PRI_CODIGO")
|
||||||
|
private Integer priCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PRI_LECTURA")
|
||||||
|
private Short priLectura;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PRI_ESCRITURA")
|
||||||
|
private Short priEscritura;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PRI_CREACION")
|
||||||
|
private Short priCreacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PRI_ACTUALIZACION")
|
||||||
|
private Short priActualizacion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PRI_DESCRIPCION")
|
||||||
|
private String priDescripcion;
|
||||||
|
@Column(name = "PRI_REQ_CONFIRMACION")
|
||||||
|
private Boolean priReqConfirmacion;
|
||||||
|
@Column(name = "PRI_ESTADO")
|
||||||
|
private Short priEstado;
|
||||||
|
@JoinColumn(name = "OPC_CODIGO", referencedColumnName = "OPC_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Opcion opcCodigo;
|
||||||
|
@JoinColumn(name = "ROL_CODIGO", referencedColumnName = "ROL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Rol rolCodigo;
|
||||||
|
|
||||||
|
public Privilegio() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Privilegio(Integer priCodigo) {
|
||||||
|
this.priCodigo = priCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Privilegio(Integer priCodigo, Short priLectura, Short priEscritura, Short priCreacion, Short priActualizacion) {
|
||||||
|
this.priCodigo = priCodigo;
|
||||||
|
this.priLectura = priLectura;
|
||||||
|
this.priEscritura = priEscritura;
|
||||||
|
this.priCreacion = priCreacion;
|
||||||
|
this.priActualizacion = priActualizacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPriCodigo() {
|
||||||
|
return priCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPriCodigo(Integer priCodigo) {
|
||||||
|
this.priCodigo = priCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPriLectura() {
|
||||||
|
return priLectura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPriLectura(Short priLectura) {
|
||||||
|
this.priLectura = priLectura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPriEscritura() {
|
||||||
|
return priEscritura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPriEscritura(Short priEscritura) {
|
||||||
|
this.priEscritura = priEscritura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPriCreacion() {
|
||||||
|
return priCreacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPriCreacion(Short priCreacion) {
|
||||||
|
this.priCreacion = priCreacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPriActualizacion() {
|
||||||
|
return priActualizacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPriActualizacion(Short priActualizacion) {
|
||||||
|
this.priActualizacion = priActualizacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPriDescripcion() {
|
||||||
|
return priDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPriDescripcion(String priDescripcion) {
|
||||||
|
this.priDescripcion = priDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getPriReqConfirmacion() {
|
||||||
|
return priReqConfirmacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPriReqConfirmacion(Boolean priReqConfirmacion) {
|
||||||
|
this.priReqConfirmacion = priReqConfirmacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPriEstado() {
|
||||||
|
return priEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPriEstado(Short priEstado) {
|
||||||
|
this.priEstado = priEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Opcion getOpcCodigo() {
|
||||||
|
return opcCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOpcCodigo(Opcion opcCodigo) {
|
||||||
|
this.opcCodigo = opcCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Rol getRolCodigo() {
|
||||||
|
return rolCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRolCodigo(Rol rolCodigo) {
|
||||||
|
this.rolCodigo = rolCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (priCodigo != null ? priCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Privilegio)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Privilegio other = (Privilegio) object;
|
||||||
|
if ((this.priCodigo == null && other.priCodigo != null) || (this.priCodigo != null && !this.priCodigo.equals(other.priCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Privilegio[ priCodigo=" + priCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,149 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "ROL")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Rol.findAll", query = "SELECT r FROM Rol r")})
|
||||||
|
public class Rol implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8328770008752L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "ROL_CODIGO")
|
||||||
|
private Integer rolCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "ROL_NEMONICO")
|
||||||
|
private String rolNemonico;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "ROL_NOMBRE")
|
||||||
|
private String rolNombre;
|
||||||
|
@Column(name = "ROL_ESTADO")
|
||||||
|
private Short rolEstado;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "rolCodigo")
|
||||||
|
private Collection<RolUsuario> rolUsuarioCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "rolCodigo")
|
||||||
|
private Collection<Privilegio> privilegioCollection;
|
||||||
|
|
||||||
|
public Rol() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Rol(Integer rolCodigo) {
|
||||||
|
this.rolCodigo = rolCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Rol(Integer rolCodigo, String rolNemonico, String rolNombre) {
|
||||||
|
this.rolCodigo = rolCodigo;
|
||||||
|
this.rolNemonico = rolNemonico;
|
||||||
|
this.rolNombre = rolNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRolCodigo() {
|
||||||
|
return rolCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRolCodigo(Integer rolCodigo) {
|
||||||
|
this.rolCodigo = rolCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRolNemonico() {
|
||||||
|
return rolNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRolNemonico(String rolNemonico) {
|
||||||
|
this.rolNemonico = rolNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRolNombre() {
|
||||||
|
return rolNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRolNombre(String rolNombre) {
|
||||||
|
this.rolNombre = rolNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getRolEstado() {
|
||||||
|
return rolEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRolEstado(Short rolEstado) {
|
||||||
|
this.rolEstado = rolEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<RolUsuario> getRolUsuarioCollection() {
|
||||||
|
return rolUsuarioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRolUsuarioCollection(Collection<RolUsuario> rolUsuarioCollection) {
|
||||||
|
this.rolUsuarioCollection = rolUsuarioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Privilegio> getPrivilegioCollection() {
|
||||||
|
return privilegioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrivilegioCollection(Collection<Privilegio> privilegioCollection) {
|
||||||
|
this.privilegioCollection = privilegioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (rolCodigo != null ? rolCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Rol)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Rol other = (Rol) object;
|
||||||
|
if ((this.rolCodigo == null && other.rolCodigo != null) || (this.rolCodigo != null && !this.rolCodigo.equals(other.rolCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Rol[ rolCodigo=" + rolCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,139 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "ROL_USUARIO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "RolUsuario.findAll", query = "SELECT r FROM RolUsuario r")})
|
||||||
|
public class RolUsuario implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8335652780022L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "ROU_CODIGO")
|
||||||
|
private Integer rouCodigo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "ROU_DESCRIPCION")
|
||||||
|
private String rouDescripcion;
|
||||||
|
@Column(name = "ROU_FECHA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date rouFecha;
|
||||||
|
@Column(name = "ROU_ESTADO")
|
||||||
|
private Short rouEstado;
|
||||||
|
@JoinColumn(name = "ROL_CODIGO", referencedColumnName = "ROL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Rol rolCodigo;
|
||||||
|
@JoinColumn(name = "USU_CODIGO", referencedColumnName = "USU_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Usuario usuCodigo;
|
||||||
|
|
||||||
|
public RolUsuario() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public RolUsuario(Integer rouCodigo) {
|
||||||
|
this.rouCodigo = rouCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRouCodigo() {
|
||||||
|
return rouCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRouCodigo(Integer rouCodigo) {
|
||||||
|
this.rouCodigo = rouCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRouDescripcion() {
|
||||||
|
return rouDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRouDescripcion(String rouDescripcion) {
|
||||||
|
this.rouDescripcion = rouDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getRouFecha() {
|
||||||
|
return rouFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRouFecha(Date rouFecha) {
|
||||||
|
this.rouFecha = rouFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getRouEstado() {
|
||||||
|
return rouEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRouEstado(Short rouEstado) {
|
||||||
|
this.rouEstado = rouEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Rol getRolCodigo() {
|
||||||
|
return rolCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRolCodigo(Rol rolCodigo) {
|
||||||
|
this.rolCodigo = rolCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Usuario getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Usuario usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (rouCodigo != null ? rouCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof RolUsuario)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
RolUsuario other = (RolUsuario) object;
|
||||||
|
if ((this.rouCodigo == null && other.rouCodigo != null) || (this.rouCodigo != null && !this.rouCodigo.equals(other.rouCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.RolUsuario[ rouCodigo=" + rouCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,140 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "SECUENCIA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Secuencia.findAll", query = "SELECT s FROM Secuencia s")})
|
||||||
|
public class Secuencia implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55964452367372L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "SEC_CODIGO")
|
||||||
|
private Integer secCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "SEC_NEMONICO")
|
||||||
|
private String secNemonico;
|
||||||
|
@Column(name = "SEC_LONGITUD")
|
||||||
|
private Integer secLongitud;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "SEC_NOMBRE")
|
||||||
|
private String secNombre;
|
||||||
|
@Column(name = "SEC_SECUENCIA")
|
||||||
|
private Integer secSecuencia;
|
||||||
|
@Column(name = "SEC_ESTADO")
|
||||||
|
private Short secEstado;
|
||||||
|
|
||||||
|
public Secuencia() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Secuencia(Integer secCodigo) {
|
||||||
|
this.secCodigo = secCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Secuencia(Integer secCodigo, String secNemonico) {
|
||||||
|
this.secCodigo = secCodigo;
|
||||||
|
this.secNemonico = secNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSecCodigo() {
|
||||||
|
return secCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSecCodigo(Integer secCodigo) {
|
||||||
|
this.secCodigo = secCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSecLongitud() {
|
||||||
|
return secLongitud;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSecLongitud(Integer secLongitud) {
|
||||||
|
this.secLongitud = secLongitud;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSecNemonico() {
|
||||||
|
return secNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSecNemonico(String secNemonico) {
|
||||||
|
this.secNemonico = secNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSecNombre() {
|
||||||
|
return secNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSecNombre(String secNombre) {
|
||||||
|
this.secNombre = secNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSecSecuencia() {
|
||||||
|
return secSecuencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSecSecuencia(Integer secSecuencia) {
|
||||||
|
this.secSecuencia = secSecuencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getSecEstado() {
|
||||||
|
return secEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSecEstado(Short secEstado) {
|
||||||
|
this.secEstado = secEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (secCodigo != null ? secCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Secuencia)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Secuencia other = (Secuencia) object;
|
||||||
|
if ((this.secCodigo == null && other.secCodigo != null) || (this.secCodigo != null && !this.secCodigo.equals(other.secCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Secuencia[ secCodigo=" + secCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,140 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "SERVICIOS")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Servicios.findAll", query = "SELECT s FROM Servicios s")})
|
||||||
|
public class Servicios implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8342258892549L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "SER_CODIGO")
|
||||||
|
private Integer serCodigo;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "SER_VALOR")
|
||||||
|
private Double serValor;
|
||||||
|
@Column(name = "SER_FECHA_ACTIVACION")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date serFechaActivacion;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "SER_DESCRIPCION")
|
||||||
|
private String serDescripcion;
|
||||||
|
@JoinColumn(name = "DET_CODIGO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detCodigo;
|
||||||
|
@JoinColumn(name = "POL_CODIGO", referencedColumnName = "POL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Poliza polCodigo;
|
||||||
|
|
||||||
|
public Servicios() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Servicios(Integer serCodigo) {
|
||||||
|
this.serCodigo = serCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSerCodigo() {
|
||||||
|
return serCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSerCodigo(Integer serCodigo) {
|
||||||
|
this.serCodigo = serCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getSerValor() {
|
||||||
|
return serValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSerValor(Double serValor) {
|
||||||
|
this.serValor = serValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getSerFechaActivacion() {
|
||||||
|
return serFechaActivacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSerFechaActivacion(Date serFechaActivacion) {
|
||||||
|
this.serFechaActivacion = serFechaActivacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSerDescripcion() {
|
||||||
|
return serDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSerDescripcion(String serDescripcion) {
|
||||||
|
this.serDescripcion = serDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetCodigo() {
|
||||||
|
return detCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetCodigo(DetalleCatalogo detCodigo) {
|
||||||
|
this.detCodigo = detCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Poliza getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Poliza polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (serCodigo != null ? serCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Servicios)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Servicios other = (Servicios) object;
|
||||||
|
if ((this.serCodigo == null && other.serCodigo != null) || (this.serCodigo != null && !this.serCodigo.equals(other.serCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Servicios[ serCodigo=" + serCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,202 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "SUCURSAL_EMPRESA")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "SucursalEmpresa.findAll", query = "SELECT s FROM SucursalEmpresa s")})
|
||||||
|
public class SucursalEmpresa implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55970438621033L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "SUC_CODIGO")
|
||||||
|
private Integer sucCodigo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "SUC_DIRECCION")
|
||||||
|
private String sucDireccion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull()
|
||||||
|
@Size(min = 1, max = 255)
|
||||||
|
@Column(name = "SUC_CONTACTO")
|
||||||
|
private String sucContacto;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull()
|
||||||
|
@Size(min = 1, max = 255)
|
||||||
|
@Column(name = "SUC_MAIL")
|
||||||
|
private String sucMail;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 3)
|
||||||
|
@Column(name = "SUC_ESTABLECIMIENTO")
|
||||||
|
private String sucEstablecimiento;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 3)
|
||||||
|
@Column(name = "SUC_PTO_EMISION")
|
||||||
|
private String sucPtoEmision;
|
||||||
|
@Size(max = 30)
|
||||||
|
@Column(name = "SUC_SECUENCIAL")
|
||||||
|
private String sucSecuencial;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "SUC_DESCRIPCION")
|
||||||
|
private String sucDescripcion;
|
||||||
|
@Column(name = "SUC_ESTADO")
|
||||||
|
private Short sucEstado;
|
||||||
|
@JoinColumn(name = "EMP_CODIGO", referencedColumnName = "EMP_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Empresa empCodigo;
|
||||||
|
|
||||||
|
public SucursalEmpresa() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public SucursalEmpresa(Integer sucCodigo) {
|
||||||
|
this.sucCodigo = sucCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SucursalEmpresa(Integer sucCodigo, String sucContacto, String sucMail, String sucEstablecimiento, String sucPtoEmision, String sucSecuencial) {
|
||||||
|
this.sucCodigo = sucCodigo;
|
||||||
|
this.sucContacto = sucContacto;
|
||||||
|
this.sucMail = sucMail;
|
||||||
|
this.sucEstablecimiento = sucEstablecimiento;
|
||||||
|
this.sucPtoEmision = sucPtoEmision;
|
||||||
|
this.sucSecuencial = sucSecuencial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSucCodigo() {
|
||||||
|
return sucCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucCodigo(Integer sucCodigo) {
|
||||||
|
this.sucCodigo = sucCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSucDireccion() {
|
||||||
|
return sucDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucDireccion(String sucDireccion) {
|
||||||
|
this.sucDireccion = sucDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSucContacto() {
|
||||||
|
return sucContacto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucContacto(String sucContacto) {
|
||||||
|
this.sucContacto = sucContacto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSucMail() {
|
||||||
|
return sucMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucMail(String sucMail) {
|
||||||
|
this.sucMail = sucMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSucEstablecimiento() {
|
||||||
|
return sucEstablecimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucEstablecimiento(String sucEstablecimiento) {
|
||||||
|
this.sucEstablecimiento = sucEstablecimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSucPtoEmision() {
|
||||||
|
return sucPtoEmision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucPtoEmision(String sucPtoEmision) {
|
||||||
|
this.sucPtoEmision = sucPtoEmision;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSucSecuencial() {
|
||||||
|
return sucSecuencial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucSecuencial(String sucSecuencial) {
|
||||||
|
this.sucSecuencial = sucSecuencial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSucDescripcion() {
|
||||||
|
return sucDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucDescripcion(String sucDescripcion) {
|
||||||
|
this.sucDescripcion = sucDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getSucEstado() {
|
||||||
|
return sucEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSucEstado(Short sucEstado) {
|
||||||
|
this.sucEstado = sucEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Empresa empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (sucCodigo != null ? sucCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof SucursalEmpresa)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
SucursalEmpresa other = (SucursalEmpresa) object;
|
||||||
|
if ((this.sucCodigo == null && other.sucCodigo != null) || (this.sucCodigo != null && !this.sucCodigo.equals(other.sucCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.SucursalEmpresa[ sucCodigo=" + sucCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,270 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.Lob;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "TARIFA_LIQUIDACION")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "TarifaLiquidacion.findAll", query = "SELECT t FROM TarifaLiquidacion t")})
|
||||||
|
public class TarifaLiquidacion implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55976682239892L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "TAL_CODIGO")
|
||||||
|
private Integer talCodigo;
|
||||||
|
@Column(name = "TAL_DESCRIPCION")
|
||||||
|
private String talDescripcion;
|
||||||
|
@Column(name = "TAL_CANTIDAD")
|
||||||
|
private Double talCantidad;
|
||||||
|
@Column(name = "TAL_CANTIDAD_AUTORIZADA")
|
||||||
|
private Double talCantidadAutorizada;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "TAL_VALOR_REGISTRADO")
|
||||||
|
private Double talValorRegistrado;
|
||||||
|
@Column(name = "TAL_VALOR_OBJETADO")
|
||||||
|
private Double talValorObjetado;
|
||||||
|
@Column(name = "TAL_VALOR_COPAGO")
|
||||||
|
private Double talValorCopago;
|
||||||
|
@Column(name = "TAL_VALOR_DEDUCIBLE")
|
||||||
|
private Double talValorDeducible;
|
||||||
|
@Column(name = "TAL_VALOR_TARIFADO")
|
||||||
|
private Double talValorTarifado;
|
||||||
|
@Column(name = "TAR_OBSERVACION")
|
||||||
|
private String tarObservacion;
|
||||||
|
@Column(name = "TAL_VALOR_PAGADO")
|
||||||
|
private Double talValorPagado;
|
||||||
|
@Column(name = "TAL_VALOR_HONORARIOS")
|
||||||
|
private Double talValorHonorarios;
|
||||||
|
@Column(name = "TAL_FCM")
|
||||||
|
private Double talFcm;
|
||||||
|
@Column(name = "TAL_PORCENTAJE")
|
||||||
|
private String talPorcentaje;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 2147483647)
|
||||||
|
@Column(name = "TAL_DETALLE_HONORARIO")
|
||||||
|
private String talDetalleHonorario;
|
||||||
|
@Column(name = "TAL_ESTADO")
|
||||||
|
private Short talEstado;
|
||||||
|
@JoinColumn(name = "DEL_CODIGO", referencedColumnName = "DEL_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleLiquidacion delCodigo;
|
||||||
|
@JoinColumn(name = "TAR_CODIGO", referencedColumnName = "TAR_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private Tarifario tarCodigo;
|
||||||
|
@JoinColumn(name = "HON_CODIGO", referencedColumnName = "HON_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Honorario honCodigo;
|
||||||
|
|
||||||
|
public TarifaLiquidacion() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public TarifaLiquidacion(Integer talCodigo) {
|
||||||
|
this.talCodigo = talCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalCantidad() {
|
||||||
|
return talCantidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalCantidad(Double talCantidad) {
|
||||||
|
this.talCantidad = talCantidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTalCodigo() {
|
||||||
|
return talCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalCodigo(Integer talCodigo) {
|
||||||
|
this.talCodigo = talCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTalDescripcion() {
|
||||||
|
return talDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalDescripcion(String talDescripcion) {
|
||||||
|
this.talDescripcion = talDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorTarifado() {
|
||||||
|
return talValorTarifado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorTarifado(Double talValorTarifado) {
|
||||||
|
this.talValorTarifado = talValorTarifado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalCantidadAutorizada() {
|
||||||
|
return talCantidadAutorizada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalCantidadAutorizada(Double talCantidadAutorizada) {
|
||||||
|
this.talCantidadAutorizada = talCantidadAutorizada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorCopago() {
|
||||||
|
return talValorCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorCopago(Double talValorCopago) {
|
||||||
|
this.talValorCopago = talValorCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorDeducible() {
|
||||||
|
return talValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorDeducible(Double talValorDeducible) {
|
||||||
|
this.talValorDeducible = talValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorRegistrado() {
|
||||||
|
return talValorRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorRegistrado(Double talValorRegistrado) {
|
||||||
|
this.talValorRegistrado = talValorRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorObjetado() {
|
||||||
|
return talValorObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorObjetado(Double talValorObjetado) {
|
||||||
|
this.talValorObjetado = talValorObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorPagado() {
|
||||||
|
return talValorPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorPagado(Double talValorPagado) {
|
||||||
|
this.talValorPagado = talValorPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getTalEstado() {
|
||||||
|
return talEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalEstado(Short talEstado) {
|
||||||
|
this.talEstado = talEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTarObservacion() {
|
||||||
|
return tarObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarObservacion(String tarObservacion) {
|
||||||
|
this.tarObservacion = tarObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleLiquidacion getDelCodigo() {
|
||||||
|
return delCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelCodigo(DetalleLiquidacion delCodigo) {
|
||||||
|
this.delCodigo = delCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Tarifario getTarCodigo() {
|
||||||
|
return tarCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarCodigo(Tarifario tarCodigo) {
|
||||||
|
this.tarCodigo = tarCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Honorario getHonCodigo() {
|
||||||
|
return honCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHonCodigo(Honorario honCodigo) {
|
||||||
|
this.honCodigo = honCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorHonorarios() {
|
||||||
|
return talValorHonorarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorHonorarios(Double talValorHonorarios) {
|
||||||
|
this.talValorHonorarios = talValorHonorarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalFcm() {
|
||||||
|
return talFcm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalFcm(Double talFcm) {
|
||||||
|
this.talFcm = talFcm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTalPorcentaje() {
|
||||||
|
return talPorcentaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalPorcentaje(String talPorcentaje) {
|
||||||
|
this.talPorcentaje = talPorcentaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTalDetalleHonorario() {
|
||||||
|
return talDetalleHonorario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalDetalleHonorario(String talDetalleHonorario) {
|
||||||
|
this.talDetalleHonorario = talDetalleHonorario;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (talCodigo != null ? talCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof TarifaLiquidacion)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TarifaLiquidacion other = (TarifaLiquidacion) object;
|
||||||
|
if ((this.talCodigo == null && other.talCodigo != null) || (this.talCodigo != null && !this.talCodigo.equals(other.talCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "TarifaLiquidacion[ talCodigo=" + talCodigo + ", Registrado " + talValorRegistrado + ", Tarifado "
|
||||||
|
+ talValorTarifado + ", Objetado " + talValorObjetado + ", Pagado " + talValorPagado + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,232 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "TARIFARIO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Tarifario.findAll", query = "SELECT t FROM Tarifario t")})
|
||||||
|
public class Tarifario implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8357233807215L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "TAR_CODIGO")
|
||||||
|
private Integer tarCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "TAR_NOMBRE")
|
||||||
|
private String tarNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "TAR_DESAGREGACION")
|
||||||
|
private String tarDesagregacion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "TAR_FORMA_FARMA")
|
||||||
|
private String tarFormaFarma;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "TAR_CONCENTRACION")
|
||||||
|
private String tarConcentracion;
|
||||||
|
@Size(max = 250)
|
||||||
|
@Column(name = "TAR_PRESENTACION")
|
||||||
|
private String tarPresentacion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "TAR_DESCRIPCION")
|
||||||
|
private String tarDescripcion;
|
||||||
|
@Column(name = "TAR_VALOR")
|
||||||
|
private Double tarValor;
|
||||||
|
@Column(name = "TAR_FACTOR")
|
||||||
|
private Double tarFactor;
|
||||||
|
@Column(name = "TAR_AUXILIAR")
|
||||||
|
private Double tarAuxiliar;
|
||||||
|
@Column(name = "TAR_TOTAL")
|
||||||
|
private Double tarTotal;
|
||||||
|
@Column(name = "TAR_ESTADO")
|
||||||
|
private Short tarEstado;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "tarCodigo")
|
||||||
|
private Collection<TarifaLiquidacion> tarifaLiquidacionCollection;
|
||||||
|
|
||||||
|
public Tarifario() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Tarifario(Integer tarCodigo) {
|
||||||
|
this.tarCodigo = tarCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Tarifario(Integer tarCodigo, String tarNombre) {
|
||||||
|
this.tarCodigo = tarCodigo;
|
||||||
|
this.tarNombre = tarNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTarCodigo() {
|
||||||
|
return tarCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarCodigo(Integer tarCodigo) {
|
||||||
|
this.tarCodigo = tarCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTarDescripcion() {
|
||||||
|
return tarDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarDescripcion(String tarDescripcion) {
|
||||||
|
this.tarDescripcion = tarDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTarDesagregacion() {
|
||||||
|
return tarDesagregacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarDesagregacion(String tarDesagregacion) {
|
||||||
|
this.tarDesagregacion = tarDesagregacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTarFormaFarma() {
|
||||||
|
return tarFormaFarma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarFormaFarma(String tarFormaFarma) {
|
||||||
|
this.tarFormaFarma = tarFormaFarma;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTarConcentracion() {
|
||||||
|
return tarConcentracion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarConcentracion(String tarConcentracion) {
|
||||||
|
this.tarConcentracion = tarConcentracion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTarPresentacion() {
|
||||||
|
return tarPresentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarPresentacion(String tarPresentacion) {
|
||||||
|
this.tarPresentacion = tarPresentacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTarNombre() {
|
||||||
|
return tarNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarNombre(String tarNombre) {
|
||||||
|
this.tarNombre = tarNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTarValor() {
|
||||||
|
return tarValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarValor(Double tarValor) {
|
||||||
|
this.tarValor = tarValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTarFactor() {
|
||||||
|
return tarFactor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarFactor(Double tarFactor) {
|
||||||
|
this.tarFactor = tarFactor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTarAuxiliar() {
|
||||||
|
return tarAuxiliar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarAuxiliar(Double tarAuxiliar) {
|
||||||
|
this.tarAuxiliar = tarAuxiliar;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTarTotal() {
|
||||||
|
return tarTotal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarTotal(Double tarTotal) {
|
||||||
|
this.tarTotal = tarTotal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getTarEstado() {
|
||||||
|
return tarEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarEstado(Short tarEstado) {
|
||||||
|
this.tarEstado = tarEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<TarifaLiquidacion> getTarifaLiquidacionCollection() {
|
||||||
|
return tarifaLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarifaLiquidacionCollection(Collection<TarifaLiquidacion> tarifaLiquidacionCollection) {
|
||||||
|
this.tarifaLiquidacionCollection = tarifaLiquidacionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (tarCodigo != null ? tarCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Tarifario)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Tarifario other = (Tarifario) object;
|
||||||
|
if ((this.tarCodigo == null && other.tarCodigo != null) || (this.tarCodigo != null && !this.tarCodigo.equals(other.tarCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Tarifario[ tarCodigo=" + tarCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,136 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "TELEFONO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Telefono.findAll", query = "SELECT t FROM Telefono t")})
|
||||||
|
public class Telefono implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8363697702172L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "TEL_CODIGO")
|
||||||
|
private Integer telCodigo;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "TEL_NUMERO")
|
||||||
|
private String telNumero;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "TEL_OBSERVACION")
|
||||||
|
private String telObservacion;
|
||||||
|
@Column(name = "TEL_ESTADO")
|
||||||
|
private Short telEstado;
|
||||||
|
@JoinColumn(name = "DET_TIPO", referencedColumnName = "DET_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private DetalleCatalogo detTipo;
|
||||||
|
@JoinColumn(name = "PER_CODIGO", referencedColumnName = "PER_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Persona perCodigo;
|
||||||
|
|
||||||
|
public Telefono() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Telefono(Integer telCodigo) {
|
||||||
|
this.telCodigo = telCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTelCodigo() {
|
||||||
|
return telCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTelCodigo(Integer telCodigo) {
|
||||||
|
this.telCodigo = telCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelNumero() {
|
||||||
|
return telNumero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTelNumero(String telNumero) {
|
||||||
|
this.telNumero = telNumero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelObservacion() {
|
||||||
|
return telObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTelObservacion(String telObservacion) {
|
||||||
|
this.telObservacion = telObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getTelEstado() {
|
||||||
|
return telEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTelEstado(Short telEstado) {
|
||||||
|
this.telEstado = telEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DetalleCatalogo getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(DetalleCatalogo detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Persona getPerCodigo() {
|
||||||
|
return perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerCodigo(Persona perCodigo) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (telCodigo != null ? telCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof Telefono)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Telefono other = (Telefono) object;
|
||||||
|
if ((this.telCodigo == null && other.telCodigo != null) || (this.telCodigo != null && !this.telCodigo.equals(other.telCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.Telefono[ telCodigo=" + telCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,255 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.CascadeType;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.OneToMany;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "USUARIO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "Usuario.findAll", query = "SELECT u FROM Usuario u")})
|
||||||
|
public class Usuario implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55989647425308L;
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "USU_CODIGO")
|
||||||
|
private Integer usuCodigo;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "USU_ID_ORIGEN")
|
||||||
|
private String usuIdOrigen;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "USU_ORIGEN")
|
||||||
|
private String usuOrigen;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull()
|
||||||
|
@Size(min = 1, max = 20)
|
||||||
|
@Column(name = "USU_USUARIO")
|
||||||
|
private String usuUsuario;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull()
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "USU_NOMBRE")
|
||||||
|
private String usuNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_DESCRIPCION")
|
||||||
|
private String usuDescripcion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_EMAIL")
|
||||||
|
private String usuEmail;
|
||||||
|
@Size(max = 1023)
|
||||||
|
@Column(name = "USU_URL_IMAGEN")
|
||||||
|
private String usuUrlImagen;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_TOKEN")
|
||||||
|
private String usuToken;
|
||||||
|
@OneToMany(mappedBy = "usuCodigo")
|
||||||
|
private Collection<EstadoPoliza> estadoPolizaCollection;
|
||||||
|
@OneToMany(mappedBy = "usuCodigo")
|
||||||
|
private Collection<Agendamiento> agendamientoCollection;
|
||||||
|
@OneToMany(mappedBy = "usuCodigo")
|
||||||
|
private Collection<EstadoAgendamiento> estadoAgendamientoCollection;
|
||||||
|
@Column(name = "USU_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date usuFechaRegistro;
|
||||||
|
@Column(name = "USU_FECHA_TOKEN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date usuFechaToken;
|
||||||
|
@Column(name = "USU_TIEMPO_TOKEN")
|
||||||
|
private Integer usuTiempoToken;
|
||||||
|
@Column(name = "USU_ESTADO")
|
||||||
|
private Short usuEstado;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "usuCodigo")
|
||||||
|
private Collection<UsuarioPassword> usuarioPasswordCollection;
|
||||||
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "usuCodigo")
|
||||||
|
private Collection<RolUsuario> rolUsuarioCollection;
|
||||||
|
|
||||||
|
public Usuario() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Usuario(Integer usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Usuario(Integer usuCodigo, String usuUsuario, String usuNombre) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
this.usuUsuario = usuUsuario;
|
||||||
|
this.usuNombre = usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Integer usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuIdOrigen() {
|
||||||
|
return usuIdOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuIdOrigen(String usuIdOrigen) {
|
||||||
|
this.usuIdOrigen = usuIdOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuOrigen() {
|
||||||
|
return usuOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuOrigen(String usuOrigen) {
|
||||||
|
this.usuOrigen = usuOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuUsuario() {
|
||||||
|
return usuUsuario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuUsuario(String usuUsuario) {
|
||||||
|
this.usuUsuario = usuUsuario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuNombre() {
|
||||||
|
return usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuNombre(String usuNombre) {
|
||||||
|
this.usuNombre = usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuDescripcion() {
|
||||||
|
return usuDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuDescripcion(String usuDescripcion) {
|
||||||
|
this.usuDescripcion = usuDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuUrlImagen() {
|
||||||
|
return usuUrlImagen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuUrlImagen(String usuUrlImagen) {
|
||||||
|
this.usuUrlImagen = usuUrlImagen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUsuFechaRegistro() {
|
||||||
|
return usuFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuFechaRegistro(Date usuFechaRegistro) {
|
||||||
|
this.usuFechaRegistro = usuFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUsuFechaToken() {
|
||||||
|
return usuFechaToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuFechaToken(Date usuFechaToken) {
|
||||||
|
this.usuFechaToken = usuFechaToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuToken() {
|
||||||
|
return usuToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuToken(String usuToken) {
|
||||||
|
this.usuToken = usuToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuTiempoToken() {
|
||||||
|
return usuTiempoToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuTiempoToken(Integer usuTiempoToken) {
|
||||||
|
this.usuTiempoToken = usuTiempoToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getUsuEstado() {
|
||||||
|
return usuEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuEstado(Short usuEstado) {
|
||||||
|
this.usuEstado = usuEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuEmail() {
|
||||||
|
return usuEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuEmail(String usuEmail) {
|
||||||
|
this.usuEmail = usuEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<UsuarioPassword> getUsuarioPasswordCollection() {
|
||||||
|
return usuarioPasswordCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuarioPasswordCollection(Collection<UsuarioPassword> usuarioPasswordCollection) {
|
||||||
|
this.usuarioPasswordCollection = usuarioPasswordCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Collection<RolUsuario> getRolUsuarioCollection() {
|
||||||
|
return rolUsuarioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRolUsuarioCollection(Collection<RolUsuario> rolUsuarioCollection) {
|
||||||
|
this.rolUsuarioCollection = rolUsuarioCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<Agendamiento> getAgendamientoCollection() {
|
||||||
|
return agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgendamientoCollection(Collection<Agendamiento> agendamientoCollection) {
|
||||||
|
this.agendamientoCollection = agendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<EstadoAgendamiento> getEstadoAgendamientoCollection() {
|
||||||
|
return estadoAgendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoAgendamientoCollection(Collection<EstadoAgendamiento> estadoAgendamientoCollection) {
|
||||||
|
this.estadoAgendamientoCollection = estadoAgendamientoCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
@XmlTransient
|
||||||
|
public Collection<EstadoPoliza> getEstadoPolizaCollection() {
|
||||||
|
return estadoPolizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoPolizaCollection(Collection<EstadoPoliza> estadoPolizaCollection) {
|
||||||
|
this.estadoPolizaCollection = estadoPolizaCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,136 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
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.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "USUARIO_PASSWORD")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "UsuarioPassword.findAll", query = "SELECT u FROM UsuarioPassword u")})
|
||||||
|
public class UsuarioPassword implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 8378188612507L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
@Basic(optional = false)
|
||||||
|
@Column(name = "PAS_CODIGO")
|
||||||
|
private Integer pasCodigo;
|
||||||
|
@Size(max = 511)
|
||||||
|
@Column(name = "PAS_VALOR")
|
||||||
|
private String pasValor;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PAS_FECHA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date pasFecha;
|
||||||
|
@Column(name = "PAS_ESTADO")
|
||||||
|
private Short pasEstado;
|
||||||
|
@JoinColumn(name = "USU_CODIGO", referencedColumnName = "USU_CODIGO")
|
||||||
|
@ManyToOne(optional = false)
|
||||||
|
private Usuario usuCodigo;
|
||||||
|
|
||||||
|
public UsuarioPassword() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public UsuarioPassword(Integer pasCodigo) {
|
||||||
|
this.pasCodigo = pasCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UsuarioPassword(Integer pasCodigo, Date pasFecha) {
|
||||||
|
this.pasCodigo = pasCodigo;
|
||||||
|
this.pasFecha = pasFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPasCodigo() {
|
||||||
|
return pasCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPasCodigo(Integer pasCodigo) {
|
||||||
|
this.pasCodigo = pasCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPasValor() {
|
||||||
|
return pasValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPasValor(String pasValor) {
|
||||||
|
this.pasValor = pasValor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPasFecha() {
|
||||||
|
return pasFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPasFecha(Date pasFecha) {
|
||||||
|
this.pasFecha = pasFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPasEstado() {
|
||||||
|
return pasEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPasEstado(Short pasEstado) {
|
||||||
|
this.pasEstado = pasEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Usuario getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Usuario usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (pasCodigo != null ? pasCodigo.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
|
if (!(object instanceof UsuarioPassword)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
UsuarioPassword other = (UsuarioPassword) object;
|
||||||
|
if ((this.pasCodigo == null && other.pasCodigo != null) || (this.pasCodigo != null && !this.pasCodigo.equals(other.pasCodigo))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.qsoft.wmp.model.UsuarioPassword[ pasCodigo=" + pasCodigo + " ]";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,686 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Lob;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_LIQPERPOL")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwLiqperpol.findAll", query = "SELECT v FROM VwLiqperpol v")})
|
||||||
|
public class VwLiqperpol implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1491935104764L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "LIQ_CODIGO")
|
||||||
|
private Integer liqCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull()
|
||||||
|
@Column(name = "DET_TIPO")
|
||||||
|
private Integer detTipo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "POL_CODIGO")
|
||||||
|
private Integer polCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PER_BENEFICIARIO")
|
||||||
|
private Integer perBeneficiario;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "LIQ_OBSERVACION_AFILIADO")
|
||||||
|
private String liqObservacionAfiliado;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "LIQ_OBSERVACION")
|
||||||
|
private String liqObservacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "USU_CODIGO")
|
||||||
|
private Integer usuCodigo;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 65535)
|
||||||
|
@Column(name = "ESL_MENSAJE")
|
||||||
|
private String eslMensaje;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "ESL_OBSERVACION")
|
||||||
|
private String eslObservacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "USU_NOMBRE")
|
||||||
|
private String usuNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_DESCRIPCION")
|
||||||
|
private String usuDescripcion;
|
||||||
|
@Size(max = 1023)
|
||||||
|
@Column(name = "USU_URL_IMAGEN")
|
||||||
|
private String usuUrlImagen;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_TOKEN")
|
||||||
|
private String usuToken;
|
||||||
|
@Column(name = "DET_TIPO_IDENTIFICACION")
|
||||||
|
private Integer detTipoIdentificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "PER_IDENTIFICACION")
|
||||||
|
private String perIdentificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "IFIS")
|
||||||
|
private Integer ifis;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_ESTADO")
|
||||||
|
private Integer detEstado;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "POL_CONTRATO")
|
||||||
|
private String polContrato;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "LIQ_NEMONICO")
|
||||||
|
private String liqNemonico;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_OBSERVACION")
|
||||||
|
private String polObservacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_MODALIDAD")
|
||||||
|
private Integer detModalidad;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_DEDUCIBLE")
|
||||||
|
private Integer detDeducible;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_ESTADO")
|
||||||
|
private Short plaEstado;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_CODIGO")
|
||||||
|
private Integer plaCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "NEMO")
|
||||||
|
private String nemo;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "TIP")
|
||||||
|
private String tip;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESTINO")
|
||||||
|
private String detDestino;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESCRIPCION")
|
||||||
|
private String detDescripcion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "DET_NEMONICO")
|
||||||
|
private String detNemonico;
|
||||||
|
@Size(max = 7)
|
||||||
|
@Column(name = "DET_NEMONICO_TIPO")
|
||||||
|
private String detNemonicoTipo;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "TIPS")
|
||||||
|
private String tips;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE")
|
||||||
|
private String detNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_ORIGEN")
|
||||||
|
private String detOrigen;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DESTI")
|
||||||
|
private String desti;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DESCR")
|
||||||
|
private String descr;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "ESTA")
|
||||||
|
private Integer esta;
|
||||||
|
@Column(name = "DET_IFI")
|
||||||
|
private Integer detIfi;
|
||||||
|
@Column(name = "CUE_ORIGEN")
|
||||||
|
private Integer cueOrigen;
|
||||||
|
@Column(name = "CUE_DESTINO")
|
||||||
|
private Integer cueDestino;
|
||||||
|
@Column(name = "ESL_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date eslFechaInicio;
|
||||||
|
@Column(name = "LIQ_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaRegistro;
|
||||||
|
@Column(name = "ESL_ESTADO")
|
||||||
|
private Short eslEstado;
|
||||||
|
@Column(name = "USU_FECHA_TOKEN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date usuFechaToken;
|
||||||
|
@Column(name = "USU_TIEMPO_TOKEN")
|
||||||
|
private Integer usuTiempoToken;
|
||||||
|
@Column(name = "USU_ESTADO")
|
||||||
|
private Short usuEstado;
|
||||||
|
@Column(name = "PER_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaRegistro;
|
||||||
|
@Column(name = "PER_FECHA_NACIMIENTO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaNacimiento;
|
||||||
|
@Column(name = "PER_ESTADO")
|
||||||
|
private Short perEstado;
|
||||||
|
@Column(name = "PEP_MONTO_COBERTURA")
|
||||||
|
private Double pepMontoCobertura;
|
||||||
|
@Column(name = "POL_DIAS_COBERTURA")
|
||||||
|
private Integer polDiasCobertura;
|
||||||
|
@Column(name = "POL_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaInicio;
|
||||||
|
@Column(name = "POL_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaFin;
|
||||||
|
@Column(name = "POL_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaRegistro;
|
||||||
|
@Column(name = "PLA_POR_DESCUENTO")
|
||||||
|
private Double plaPorDescuento;
|
||||||
|
@Column(name = "PLA_NUM_BENEFICIARIOS")
|
||||||
|
private Integer plaNumBeneficiarios;
|
||||||
|
@Column(name = "PLA_COBERTURA_MAXIMA")
|
||||||
|
private Double plaCoberturaMaxima;
|
||||||
|
|
||||||
|
public VwLiqperpol() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLiqCodigo() {
|
||||||
|
return liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCodigo(Integer liqCodigo) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(Integer detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNemonicoTipo() {
|
||||||
|
return detNemonicoTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNemonicoTipo(String detNemonicoTipo) {
|
||||||
|
this.detNemonicoTipo = detNemonicoTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Integer polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPerBeneficiario() {
|
||||||
|
return perBeneficiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerBeneficiario(Integer perBeneficiario) {
|
||||||
|
this.perBeneficiario = perBeneficiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqObservacionAfiliado() {
|
||||||
|
return liqObservacionAfiliado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqObservacionAfiliado(String liqObservacionAfiliado) {
|
||||||
|
this.liqObservacionAfiliado = liqObservacionAfiliado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqObservacion() {
|
||||||
|
return liqObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqObservacion(String liqObservacion) {
|
||||||
|
this.liqObservacion = liqObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Integer usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEslMensaje() {
|
||||||
|
return eslMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslMensaje(String eslMensaje) {
|
||||||
|
this.eslMensaje = eslMensaje;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEslObservacion() {
|
||||||
|
return eslObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslObservacion(String eslObservacion) {
|
||||||
|
this.eslObservacion = eslObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuNombre() {
|
||||||
|
return usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuNombre(String usuNombre) {
|
||||||
|
this.usuNombre = usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuDescripcion() {
|
||||||
|
return usuDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuDescripcion(String usuDescripcion) {
|
||||||
|
this.usuDescripcion = usuDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuUrlImagen() {
|
||||||
|
return usuUrlImagen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuUrlImagen(String usuUrlImagen) {
|
||||||
|
this.usuUrlImagen = usuUrlImagen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuToken() {
|
||||||
|
return usuToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuToken(String usuToken) {
|
||||||
|
this.usuToken = usuToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipoIdentificacion() {
|
||||||
|
return detTipoIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoIdentificacion(Integer detTipoIdentificacion) {
|
||||||
|
this.detTipoIdentificacion = detTipoIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerIdentificacion() {
|
||||||
|
return perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerIdentificacion(String perIdentificacion) {
|
||||||
|
this.perIdentificacion = perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getIfis() {
|
||||||
|
return ifis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIfis(Integer ifis) {
|
||||||
|
this.ifis = ifis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(Integer detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolContrato() {
|
||||||
|
return polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolContrato(String polContrato) {
|
||||||
|
this.polContrato = polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolObservacion() {
|
||||||
|
return polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolObservacion(String polObservacion) {
|
||||||
|
this.polObservacion = polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetModalidad() {
|
||||||
|
return detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetModalidad(Integer detModalidad) {
|
||||||
|
this.detModalidad = detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetDeducible() {
|
||||||
|
return detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDeducible(Integer detDeducible) {
|
||||||
|
this.detDeducible = detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPlaEstado() {
|
||||||
|
return plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEstado(Short plaEstado) {
|
||||||
|
this.plaEstado = plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNemo() {
|
||||||
|
return nemo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNemo(String nemo) {
|
||||||
|
this.nemo = nemo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTip() {
|
||||||
|
return tip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTip(String tip) {
|
||||||
|
this.tip = tip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDestino() {
|
||||||
|
return detDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDestino(String detDestino) {
|
||||||
|
this.detDestino = detDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDescripcion() {
|
||||||
|
return detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDescripcion(String detDescripcion) {
|
||||||
|
this.detDescripcion = detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNemonico() {
|
||||||
|
return detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNemonico(String detNemonico) {
|
||||||
|
this.detNemonico = detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTips() {
|
||||||
|
return tips;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTips(String tips) {
|
||||||
|
this.tips = tips;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre() {
|
||||||
|
return detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre(String detNombre) {
|
||||||
|
this.detNombre = detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetOrigen() {
|
||||||
|
return detOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetOrigen(String detOrigen) {
|
||||||
|
this.detOrigen = detOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDesti() {
|
||||||
|
return desti;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDesti(String desti) {
|
||||||
|
this.desti = desti;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescr() {
|
||||||
|
return descr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescr(String descr) {
|
||||||
|
this.descr = descr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEsta() {
|
||||||
|
return esta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEsta(Integer esta) {
|
||||||
|
this.esta = esta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(Integer detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCueOrigen() {
|
||||||
|
return cueOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueOrigen(Integer cueOrigen) {
|
||||||
|
this.cueOrigen = cueOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCueDestino() {
|
||||||
|
return cueDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueDestino(Integer cueDestino) {
|
||||||
|
this.cueDestino = cueDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getEslFechaInicio() {
|
||||||
|
return eslFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslFechaInicio(Date eslFechaInicio) {
|
||||||
|
this.eslFechaInicio = eslFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getEslEstado() {
|
||||||
|
return eslEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEslEstado(Short eslEstado) {
|
||||||
|
this.eslEstado = eslEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUsuFechaToken() {
|
||||||
|
return usuFechaToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuFechaToken(Date usuFechaToken) {
|
||||||
|
this.usuFechaToken = usuFechaToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuTiempoToken() {
|
||||||
|
return usuTiempoToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuTiempoToken(Integer usuTiempoToken) {
|
||||||
|
this.usuTiempoToken = usuTiempoToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getUsuEstado() {
|
||||||
|
return usuEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuEstado(Short usuEstado) {
|
||||||
|
this.usuEstado = usuEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaRegistro() {
|
||||||
|
return perFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaRegistro(Date perFechaRegistro) {
|
||||||
|
this.perFechaRegistro = perFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaNacimiento() {
|
||||||
|
return perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaNacimiento(Date perFechaNacimiento) {
|
||||||
|
this.perFechaNacimiento = perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPerEstado() {
|
||||||
|
return perEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerEstado(Short perEstado) {
|
||||||
|
this.perEstado = perEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPepMontoCobertura() {
|
||||||
|
return pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepMontoCobertura(Double pepMontoCobertura) {
|
||||||
|
this.pepMontoCobertura = pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolDiasCobertura() {
|
||||||
|
return polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolDiasCobertura(Integer polDiasCobertura) {
|
||||||
|
this.polDiasCobertura = polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaInicio() {
|
||||||
|
return polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaInicio(Date polFechaInicio) {
|
||||||
|
this.polFechaInicio = polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaFin() {
|
||||||
|
return polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaFin(Date polFechaFin) {
|
||||||
|
this.polFechaFin = polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaRegistro() {
|
||||||
|
return polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaRegistro(Date polFechaRegistro) {
|
||||||
|
this.polFechaRegistro = polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaPorDescuento() {
|
||||||
|
return plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaPorDescuento(Double plaPorDescuento) {
|
||||||
|
this.plaPorDescuento = plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaNumBeneficiarios() {
|
||||||
|
return plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNumBeneficiarios(Integer plaNumBeneficiarios) {
|
||||||
|
this.plaNumBeneficiarios = plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaCoberturaMaxima() {
|
||||||
|
return plaCoberturaMaxima;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCoberturaMaxima(Double plaCoberturaMaxima) {
|
||||||
|
this.plaCoberturaMaxima = plaCoberturaMaxima;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqNemonico() {
|
||||||
|
return liqNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqNemonico(String liqNemonico) {
|
||||||
|
this.liqNemonico = liqNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaRegistro() {
|
||||||
|
return liqFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaRegistro(Date liqFechaRegistro) {
|
||||||
|
this.liqFechaRegistro = liqFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,571 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_LIQTO")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwLiqto.findAll", query = "SELECT v FROM VwLiqto v")})
|
||||||
|
public class VwLiqto implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 35375030248075L;
|
||||||
|
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "LIQ_CODIGO")
|
||||||
|
private Integer liqCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "POL_CODIGO")
|
||||||
|
private Integer polCodigo;
|
||||||
|
@Column(name = "DET_IFI")
|
||||||
|
private Integer detIfi;
|
||||||
|
@Column(name = "CUE_ORIGEN")
|
||||||
|
private Integer cueOrigen;
|
||||||
|
@Column(name = "CUE_DESTINO")
|
||||||
|
private Integer cueDestino;
|
||||||
|
@Column(name = "PER_BENEFICIARIO")
|
||||||
|
private Integer perBeneficiario;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "LIQ_NEMONICO")
|
||||||
|
private String liqNemonico;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "LIQ_OBSERVACION_AFILIADO")
|
||||||
|
private String liqObservacionAfiliado;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "LIQ_OBSERVACION")
|
||||||
|
private String liqObservacion;
|
||||||
|
@Column(name = "LIQ_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaInicio;
|
||||||
|
@Column(name = "LIQ_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaFin;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "LIQ_COPAGO")
|
||||||
|
private Double liqCopago;
|
||||||
|
@Column(name = "LIQ_DEDUCIBLE")
|
||||||
|
private Double liqDeducible;
|
||||||
|
@Column(name = "LIQ_TOTAL_LIQUIDADO")
|
||||||
|
private Double liqTotalLiquidado;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "LIQ_COMPROBANTE_PAGO")
|
||||||
|
private String liqComprobantePago;
|
||||||
|
@Column(name = "LIQ_FECHA_PAGO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaPago;
|
||||||
|
@Column(name = "LIQ_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date liqFechaRegistro;
|
||||||
|
@Column(name = "LIQ_CALIFICACION")
|
||||||
|
private Short liqCalificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "DET_NEMONICO")
|
||||||
|
private String detNemonico;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESCRIPCION")
|
||||||
|
private String detDescripcion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "nemo1")
|
||||||
|
private String nemo1;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "NOMBRE")
|
||||||
|
private String nombre;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "LIQ_CODIGO_0")
|
||||||
|
private Integer liqCodigo0;
|
||||||
|
@Column(name = "DET_CIE10")
|
||||||
|
private Integer detCie10;
|
||||||
|
@Column(name = "PRE_CODIGO")
|
||||||
|
private Integer preCodigo;
|
||||||
|
@Column(name = "COP_CODIGO")
|
||||||
|
private Integer copCodigo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DEL_MEDICO")
|
||||||
|
private String delMedico;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DEL_SERVICIO")
|
||||||
|
private String delServicio;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "DEL_DESCRIPCION")
|
||||||
|
private String delDescripcion;
|
||||||
|
@Column(name = "DEL_CANTIDAD")
|
||||||
|
private Double delCantidad;
|
||||||
|
@Column(name = "DEL_UNIDAD")
|
||||||
|
private Double delUnidad;
|
||||||
|
@Column(name = "DEL_VALOR_REGISTRADO")
|
||||||
|
private Double delValorRegistrado;
|
||||||
|
@Column(name = "DEL_VALOR_OBJETADO")
|
||||||
|
private Double delValorObjetado;
|
||||||
|
@Column(name = "DEL_VALOR_PAGADO")
|
||||||
|
private Double delValorPagado;
|
||||||
|
@Column(name = "DEL_COPAGO")
|
||||||
|
private Double delCopago;
|
||||||
|
@Column(name = "DEL_FECHA")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date delFecha;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "DET_NEMONICO_0")
|
||||||
|
private String detNemonico0;
|
||||||
|
@Column(name = "ESTADO_CAT")
|
||||||
|
private Short estadoCat;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DESCR_ES")
|
||||||
|
private String descrEs;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "TIPOQ")
|
||||||
|
private Integer tipoq;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DEL_CODIGO")
|
||||||
|
private Integer delCodigo;
|
||||||
|
@Id
|
||||||
|
@Column(name = "TAL_CODIGO")
|
||||||
|
private Integer talCodigo;
|
||||||
|
@Column(name = "DEL_CODIGO_0")
|
||||||
|
private Integer delCodigo0;
|
||||||
|
@Column(name = "TAR_CODIGO")
|
||||||
|
private Integer tarCodigo;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "TAL_DESCRIPCION")
|
||||||
|
private String talDescripcion;
|
||||||
|
@Column(name = "TAL_VALOR_REGISTRADO")
|
||||||
|
private Double talValorRegistrado;
|
||||||
|
@Column(name = "TAL_VALOR_PAGADO")
|
||||||
|
private Double talValorPagado;
|
||||||
|
@Column(name = "TAL_VALOR_OBJETADO")
|
||||||
|
private Double talValorObjetado;
|
||||||
|
@Column(name = "TAL_ESTADO")
|
||||||
|
private Short talEstado;
|
||||||
|
|
||||||
|
public VwLiqto() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLiqCodigo() {
|
||||||
|
return liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCodigo(Integer liqCodigo) {
|
||||||
|
this.liqCodigo = liqCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Integer polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(Integer detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCueOrigen() {
|
||||||
|
return cueOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueOrigen(Integer cueOrigen) {
|
||||||
|
this.cueOrigen = cueOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCueDestino() {
|
||||||
|
return cueDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueDestino(Integer cueDestino) {
|
||||||
|
this.cueDestino = cueDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPerBeneficiario() {
|
||||||
|
return perBeneficiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerBeneficiario(Integer perBeneficiario) {
|
||||||
|
this.perBeneficiario = perBeneficiario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqNemonico() {
|
||||||
|
return liqNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqNemonico(String liqNemonico) {
|
||||||
|
this.liqNemonico = liqNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqObservacionAfiliado() {
|
||||||
|
return liqObservacionAfiliado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqObservacionAfiliado(String liqObservacionAfiliado) {
|
||||||
|
this.liqObservacionAfiliado = liqObservacionAfiliado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqObservacion() {
|
||||||
|
return liqObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqObservacion(String liqObservacion) {
|
||||||
|
this.liqObservacion = liqObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaInicio() {
|
||||||
|
return liqFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaInicio(Date liqFechaInicio) {
|
||||||
|
this.liqFechaInicio = liqFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaFin() {
|
||||||
|
return liqFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaFin(Date liqFechaFin) {
|
||||||
|
this.liqFechaFin = liqFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqCopago() {
|
||||||
|
return liqCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCopago(Double liqCopago) {
|
||||||
|
this.liqCopago = liqCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqDeducible() {
|
||||||
|
return liqDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqDeducible(Double liqDeducible) {
|
||||||
|
this.liqDeducible = liqDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getLiqTotalLiquidado() {
|
||||||
|
return liqTotalLiquidado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqTotalLiquidado(Double liqTotalLiquidado) {
|
||||||
|
this.liqTotalLiquidado = liqTotalLiquidado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLiqComprobantePago() {
|
||||||
|
return liqComprobantePago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqComprobantePago(String liqComprobantePago) {
|
||||||
|
this.liqComprobantePago = liqComprobantePago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaPago() {
|
||||||
|
return liqFechaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaPago(Date liqFechaPago) {
|
||||||
|
this.liqFechaPago = liqFechaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLiqFechaRegistro() {
|
||||||
|
return liqFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqFechaRegistro(Date liqFechaRegistro) {
|
||||||
|
this.liqFechaRegistro = liqFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getLiqCalificacion() {
|
||||||
|
return liqCalificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCalificacion(Short liqCalificacion) {
|
||||||
|
this.liqCalificacion = liqCalificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNemonico() {
|
||||||
|
return detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNemonico(String detNemonico) {
|
||||||
|
this.detNemonico = detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDescripcion() {
|
||||||
|
return detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDescripcion(String detDescripcion) {
|
||||||
|
this.detDescripcion = detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNemo1() {
|
||||||
|
return nemo1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNemo1(String nemo1) {
|
||||||
|
this.nemo1 = nemo1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNombre() {
|
||||||
|
return nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNombre(String nombre) {
|
||||||
|
this.nombre = nombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLiqCodigo0() {
|
||||||
|
return liqCodigo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLiqCodigo0(Integer liqCodigo0) {
|
||||||
|
this.liqCodigo0 = liqCodigo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetCie10() {
|
||||||
|
return detCie10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetCie10(Integer detCie10) {
|
||||||
|
this.detCie10 = detCie10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPreCodigo() {
|
||||||
|
return preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreCodigo(Integer preCodigo) {
|
||||||
|
this.preCodigo = preCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCopCodigo() {
|
||||||
|
return copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopCodigo(Integer copCodigo) {
|
||||||
|
this.copCodigo = copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelMedico() {
|
||||||
|
return delMedico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelMedico(String delMedico) {
|
||||||
|
this.delMedico = delMedico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelServicio() {
|
||||||
|
return delServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelServicio(String delServicio) {
|
||||||
|
this.delServicio = delServicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDelDescripcion() {
|
||||||
|
return delDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelDescripcion(String delDescripcion) {
|
||||||
|
this.delDescripcion = delDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelCantidad() {
|
||||||
|
return delCantidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelCantidad(Double delCantidad) {
|
||||||
|
this.delCantidad = delCantidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelUnidad() {
|
||||||
|
return delUnidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelUnidad(Double delUnidad) {
|
||||||
|
this.delUnidad = delUnidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelValorRegistrado() {
|
||||||
|
return delValorRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelValorRegistrado(Double delValorRegistrado) {
|
||||||
|
this.delValorRegistrado = delValorRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelValorObjetado() {
|
||||||
|
return delValorObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelValorObjetado(Double delValorObjetado) {
|
||||||
|
this.delValorObjetado = delValorObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelValorPagado() {
|
||||||
|
return delValorPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelValorPagado(Double delValorPagado) {
|
||||||
|
this.delValorPagado = delValorPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getDelCopago() {
|
||||||
|
return delCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelCopago(Double delCopago) {
|
||||||
|
this.delCopago = delCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDelFecha() {
|
||||||
|
return delFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelFecha(Date delFecha) {
|
||||||
|
this.delFecha = delFecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNemonico0() {
|
||||||
|
return detNemonico0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNemonico0(String detNemonico0) {
|
||||||
|
this.detNemonico0 = detNemonico0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getEstadoCat() {
|
||||||
|
return estadoCat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoCat(Short estadoCat) {
|
||||||
|
this.estadoCat = estadoCat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescrEs() {
|
||||||
|
return descrEs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescrEs(String descrEs) {
|
||||||
|
this.descrEs = descrEs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTipoq() {
|
||||||
|
return tipoq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoq(Integer tipoq) {
|
||||||
|
this.tipoq = tipoq;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDelCodigo() {
|
||||||
|
return delCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelCodigo(Integer delCodigo) {
|
||||||
|
this.delCodigo = delCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTalCodigo() {
|
||||||
|
return talCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalCodigo(Integer talCodigo) {
|
||||||
|
this.talCodigo = talCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDelCodigo0() {
|
||||||
|
return delCodigo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDelCodigo0(Integer delCodigo0) {
|
||||||
|
this.delCodigo0 = delCodigo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTarCodigo() {
|
||||||
|
return tarCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarCodigo(Integer tarCodigo) {
|
||||||
|
this.tarCodigo = tarCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTalDescripcion() {
|
||||||
|
return talDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalDescripcion(String talDescripcion) {
|
||||||
|
this.talDescripcion = talDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorRegistrado() {
|
||||||
|
return talValorRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorRegistrado(Double talValorRegistrado) {
|
||||||
|
this.talValorRegistrado = talValorRegistrado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorPagado() {
|
||||||
|
return talValorPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorPagado(Double talValorPagado) {
|
||||||
|
this.talValorPagado = talValorPagado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getTalValorObjetado() {
|
||||||
|
return talValorObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalValorObjetado(Double talValorObjetado) {
|
||||||
|
this.talValorObjetado = talValorObjetado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getTalEstado() {
|
||||||
|
return talEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTalEstado(Short talEstado) {
|
||||||
|
this.talEstado = talEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,164 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_PAGOS_CPN")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwPagosCpn.findAll", query = "SELECT v FROM VwPagosCpn v")})
|
||||||
|
public class VwPagosCpn implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 29549738864780L;
|
||||||
|
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "Fecha")
|
||||||
|
@Temporal(TemporalType.DATE)
|
||||||
|
private Date fecha;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "CEDULA")
|
||||||
|
private String cedula;
|
||||||
|
@Size(max = 101)
|
||||||
|
@Column(name = "NOMBRES")
|
||||||
|
private String nombres;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "TIPOCUENTA")
|
||||||
|
private String tipocuenta;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "NUMEROCUENTA")
|
||||||
|
private String numerocuenta;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "VALOR")
|
||||||
|
private Double valor;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 35)
|
||||||
|
@Column(name = "BANCO")
|
||||||
|
private String banco;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 13)
|
||||||
|
@Column(name = "RUC_COBRA")
|
||||||
|
private String rucCobra;
|
||||||
|
@Column(name = "PAG_FECHA_VENCIMIENTO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date pagFechaVencimiento;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE")
|
||||||
|
private String detNombre;
|
||||||
|
|
||||||
|
public VwPagosCpn() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecha() {
|
||||||
|
return fecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecha(Date fecha) {
|
||||||
|
this.fecha = fecha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCedula() {
|
||||||
|
return cedula;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCedula(String cedula) {
|
||||||
|
this.cedula = cedula;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNombres() {
|
||||||
|
return nombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNombres(String nombres) {
|
||||||
|
this.nombres = nombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipocuenta() {
|
||||||
|
return tipocuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipocuenta(String tipocuenta) {
|
||||||
|
this.tipocuenta = tipocuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNumerocuenta() {
|
||||||
|
return numerocuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumerocuenta(String numerocuenta) {
|
||||||
|
this.numerocuenta = numerocuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getValor() {
|
||||||
|
return valor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValor(Double valor) {
|
||||||
|
this.valor = valor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBanco() {
|
||||||
|
return banco;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBanco(String banco) {
|
||||||
|
this.banco = banco;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRucCobra() {
|
||||||
|
return rucCobra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRucCobra(String rucCobra) {
|
||||||
|
this.rucCobra = rucCobra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPagFechaVencimiento() {
|
||||||
|
return pagFechaVencimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagFechaVencimiento(Date pagFechaVencimiento) {
|
||||||
|
this.pagFechaVencimiento = pagFechaVencimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre() {
|
||||||
|
return detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre(String detNombre) {
|
||||||
|
this.detNombre = detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,350 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_POL_PER_BAN")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwPolPerBan.findAll", query = "SELECT v FROM VwPolPerBan v")})
|
||||||
|
public class VwPolPerBan implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 96497510911317L;
|
||||||
|
|
||||||
|
@Column(name = "EDAD_ACTUAL")
|
||||||
|
private Integer edadActual;
|
||||||
|
@Column(name = "PER_CODIGO")
|
||||||
|
private Integer perCodigo;
|
||||||
|
@Column(name = "POL_CODIGO")
|
||||||
|
private Integer polCodigo;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
@Size(max = 7)
|
||||||
|
@Column(name = "DET_NEMONICO")
|
||||||
|
private String detNemonico;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESCRIPCION")
|
||||||
|
private String detDescripcion;
|
||||||
|
@Id
|
||||||
|
@Size(max = 15)
|
||||||
|
@Column(name = "PER_IDENTIFICACION")
|
||||||
|
private String perIdentificacion;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "PER_NOMBRES")
|
||||||
|
private String perNombres;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "PER_APELLIDOS")
|
||||||
|
private String perApellidos;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PER_DIRECCION")
|
||||||
|
private String perDireccion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PER_MAIL")
|
||||||
|
private String perMail;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PEP_OBSERVACION")
|
||||||
|
private String pepObservacion;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "PLA_PRODUCTO")
|
||||||
|
private String plaProducto;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DESCRIPCION_CUENTA")
|
||||||
|
private String descripcionCuenta;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "CUE_CUENTA")
|
||||||
|
private String cueCuenta;
|
||||||
|
@Size(max = 7)
|
||||||
|
@Column(name = "NEMONICO2")
|
||||||
|
private String nemonico2;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "NOMBRE1")
|
||||||
|
private String nombre1;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "NEMONICO")
|
||||||
|
private String nemonico;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "NOMBRE2")
|
||||||
|
private String nombre2;
|
||||||
|
@Size(max = 1024)
|
||||||
|
@Column(name = "POL_DESCRIPCION")
|
||||||
|
private String polDescripcion;
|
||||||
|
@Size(max = 256)
|
||||||
|
@Column(name = "TIPO")
|
||||||
|
private String tipo;
|
||||||
|
@Column(name = "POL_ESTADO")
|
||||||
|
private Short polEstado;
|
||||||
|
@Column(name = "PLA_EDAD_HIJOS")
|
||||||
|
private Integer plaEdadHijos;
|
||||||
|
@Column(name = "PLA_NUM_BENEFICIARIOS")
|
||||||
|
private Integer plaNumBeneficiarios;
|
||||||
|
@Column(name = "PEP_MONTO_COBERTURA")
|
||||||
|
private Double pepMontoCobertura;
|
||||||
|
@Column(name = "DET_TIPO_CUENTA")
|
||||||
|
private Integer detTipoCuenta;
|
||||||
|
@Column(name = "DET_IFI")
|
||||||
|
private Integer detIfi;
|
||||||
|
@Column(name = "CUE_ESTADO")
|
||||||
|
private Short cueEstado;
|
||||||
|
@Column(name = "DET_TIPO_PERSONA")
|
||||||
|
private Integer detTipoPersona;
|
||||||
|
|
||||||
|
public VwPolPerBan() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEdadActual() {
|
||||||
|
return edadActual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEdadActual(Integer edadActual) {
|
||||||
|
this.edadActual = edadActual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipo() {
|
||||||
|
return tipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipo(String tipo) {
|
||||||
|
this.tipo = tipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPerCodigo() {
|
||||||
|
return perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerCodigo(Integer perCodigo) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Integer polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNemonico() {
|
||||||
|
return detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNemonico(String detNemonico) {
|
||||||
|
this.detNemonico = detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDescripcion() {
|
||||||
|
return detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDescripcion(String detDescripcion) {
|
||||||
|
this.detDescripcion = detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerIdentificacion() {
|
||||||
|
return perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerIdentificacion(String perIdentificacion) {
|
||||||
|
this.perIdentificacion = perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerNombres() {
|
||||||
|
return perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerNombres(String perNombres) {
|
||||||
|
this.perNombres = perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerApellidos() {
|
||||||
|
return perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerApellidos(String perApellidos) {
|
||||||
|
this.perApellidos = perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerDireccion() {
|
||||||
|
return perDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerDireccion(String perDireccion) {
|
||||||
|
this.perDireccion = perDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerMail() {
|
||||||
|
return perMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerMail(String perMail) {
|
||||||
|
this.perMail = perMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPepObservacion() {
|
||||||
|
return pepObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepObservacion(String pepObservacion) {
|
||||||
|
this.pepObservacion = pepObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaProducto() {
|
||||||
|
return plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaProducto(String plaProducto) {
|
||||||
|
this.plaProducto = plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescripcionCuenta() {
|
||||||
|
return descripcionCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescripcionCuenta(String descripcionCuenta) {
|
||||||
|
this.descripcionCuenta = descripcionCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCueCuenta() {
|
||||||
|
return cueCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueCuenta(String cueCuenta) {
|
||||||
|
this.cueCuenta = cueCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNemonico2() {
|
||||||
|
return nemonico2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNemonico2(String nemonico2) {
|
||||||
|
this.nemonico2 = nemonico2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNombre1() {
|
||||||
|
return nombre1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNombre1(String nombre1) {
|
||||||
|
this.nombre1 = nombre1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNemonico() {
|
||||||
|
return nemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNemonico(String nemonico) {
|
||||||
|
this.nemonico = nemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNombre2() {
|
||||||
|
return nombre2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNombre2(String nombre2) {
|
||||||
|
this.nombre2 = nombre2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolDescripcion() {
|
||||||
|
return polDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolDescripcion(String polDescripcion) {
|
||||||
|
this.polDescripcion = polDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPolEstado() {
|
||||||
|
return polEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolEstado(Short polEstado) {
|
||||||
|
this.polEstado = polEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaEdadHijos() {
|
||||||
|
return plaEdadHijos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEdadHijos(Integer plaEdadHijos) {
|
||||||
|
this.plaEdadHijos = plaEdadHijos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaNumBeneficiarios() {
|
||||||
|
return plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNumBeneficiarios(Integer plaNumBeneficiarios) {
|
||||||
|
this.plaNumBeneficiarios = plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPepMontoCobertura() {
|
||||||
|
return pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepMontoCobertura(Double pepMontoCobertura) {
|
||||||
|
this.pepMontoCobertura = pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipoCuenta() {
|
||||||
|
return detTipoCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoCuenta(Integer detTipoCuenta) {
|
||||||
|
this.detTipoCuenta = detTipoCuenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(Integer detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getCueEstado() {
|
||||||
|
return cueEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCueEstado(Short cueEstado) {
|
||||||
|
this.cueEstado = cueEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipoPersona() {
|
||||||
|
return detTipoPersona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoPersona(Integer detTipoPersona) {
|
||||||
|
this.detTipoPersona = detTipoPersona;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,380 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_PRESTACIONES_PLAN")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwPrestacionesPlan.findAll", query = "SELECT v FROM VwPrestacionesPlan v")})
|
||||||
|
public class VwPrestacionesPlan implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 70550566141260L;
|
||||||
|
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "POL_CODIGO")
|
||||||
|
private Integer polCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "EMP_CODIGO")
|
||||||
|
private Integer empCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_CODIGO")
|
||||||
|
private Integer plaCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_PERIODICIDAD")
|
||||||
|
private Integer detPeriodicidad;
|
||||||
|
@Column(name = "DET_FORMA_PAGO")
|
||||||
|
private Integer detFormaPago;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_IFI")
|
||||||
|
private Integer detIfi;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_ESTADO")
|
||||||
|
private Integer detEstado;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "POL_CONTRATO")
|
||||||
|
private String polContrato;
|
||||||
|
@Size(max = 15)
|
||||||
|
@Column(name = "POL_CERTIFICADO")
|
||||||
|
private String polCertificado;
|
||||||
|
@Column(name = "POL_DIAS_COBERTURA")
|
||||||
|
private Integer polDiasCobertura;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_BROKER")
|
||||||
|
private String polBroker;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_OBSERVACION")
|
||||||
|
private String polObservacion;
|
||||||
|
@Column(name = "POL_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaInicio;
|
||||||
|
@Column(name = "POL_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaFin;
|
||||||
|
@Column(name = "POL_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaRegistro;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_MODALIDAD")
|
||||||
|
private Integer detModalidad;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_DEDUCIBLE")
|
||||||
|
private Integer detDeducible;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PLA_RUTA_CONTRATO")
|
||||||
|
private String plaRutaContrato;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "PLA_VALOR_ANUAL")
|
||||||
|
private Double plaValorAnual;
|
||||||
|
@Column(name = "PLA_VALOR_MENSUAL")
|
||||||
|
private Double plaValorMensual;
|
||||||
|
@Column(name = "PLA_POR_DESCUENTO")
|
||||||
|
private Double plaPorDescuento;
|
||||||
|
@Column(name = "PLA_EDAD_TITULAR")
|
||||||
|
private Integer plaEdadTitular;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "PLA_PRODUCTO")
|
||||||
|
private String plaProducto;
|
||||||
|
@Column(name = "PLA_VALOR_DEDUCIBLE")
|
||||||
|
private Double plaValorDeducible;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "COP_CODIGO")
|
||||||
|
private Integer copCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_TIPO")
|
||||||
|
private Integer detTipo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_PRESTACION")
|
||||||
|
private Integer detPrestacion;
|
||||||
|
@Column(name = "COP_COPAGO")
|
||||||
|
private Double copCopago;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "COP_TOPE")
|
||||||
|
private Double copTope;
|
||||||
|
|
||||||
|
public VwPrestacionesPlan() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Integer polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Integer empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetPeriodicidad() {
|
||||||
|
return detPeriodicidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetPeriodicidad(Integer detPeriodicidad) {
|
||||||
|
this.detPeriodicidad = detPeriodicidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetFormaPago() {
|
||||||
|
return detFormaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetFormaPago(Integer detFormaPago) {
|
||||||
|
this.detFormaPago = detFormaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(Integer detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(Integer detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolContrato() {
|
||||||
|
return polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolContrato(String polContrato) {
|
||||||
|
this.polContrato = polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolCertificado() {
|
||||||
|
return polCertificado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCertificado(String polCertificado) {
|
||||||
|
this.polCertificado = polCertificado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolDiasCobertura() {
|
||||||
|
return polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolDiasCobertura(Integer polDiasCobertura) {
|
||||||
|
this.polDiasCobertura = polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolBroker() {
|
||||||
|
return polBroker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolBroker(String polBroker) {
|
||||||
|
this.polBroker = polBroker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolObservacion() {
|
||||||
|
return polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolObservacion(String polObservacion) {
|
||||||
|
this.polObservacion = polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaInicio() {
|
||||||
|
return polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaInicio(Date polFechaInicio) {
|
||||||
|
this.polFechaInicio = polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaFin() {
|
||||||
|
return polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaFin(Date polFechaFin) {
|
||||||
|
this.polFechaFin = polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaRegistro() {
|
||||||
|
return polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaRegistro(Date polFechaRegistro) {
|
||||||
|
this.polFechaRegistro = polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetModalidad() {
|
||||||
|
return detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetModalidad(Integer detModalidad) {
|
||||||
|
this.detModalidad = detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetDeducible() {
|
||||||
|
return detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDeducible(Integer detDeducible) {
|
||||||
|
this.detDeducible = detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaRutaContrato() {
|
||||||
|
return plaRutaContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaRutaContrato(String plaRutaContrato) {
|
||||||
|
this.plaRutaContrato = plaRutaContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorAnual() {
|
||||||
|
return plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorAnual(Double plaValorAnual) {
|
||||||
|
this.plaValorAnual = plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorMensual() {
|
||||||
|
return plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorMensual(Double plaValorMensual) {
|
||||||
|
this.plaValorMensual = plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaPorDescuento() {
|
||||||
|
return plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaPorDescuento(Double plaPorDescuento) {
|
||||||
|
this.plaPorDescuento = plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaEdadTitular() {
|
||||||
|
return plaEdadTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEdadTitular(Integer plaEdadTitular) {
|
||||||
|
this.plaEdadTitular = plaEdadTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaProducto() {
|
||||||
|
return plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaProducto(String plaProducto) {
|
||||||
|
this.plaProducto = plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorDeducible() {
|
||||||
|
return plaValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorDeducible(Double plaValorDeducible) {
|
||||||
|
this.plaValorDeducible = plaValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCopCodigo() {
|
||||||
|
return copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopCodigo(Integer copCodigo) {
|
||||||
|
this.copCodigo = copCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(Integer detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetPrestacion() {
|
||||||
|
return detPrestacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetPrestacion(Integer detPrestacion) {
|
||||||
|
this.detPrestacion = detPrestacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getCopCopago() {
|
||||||
|
return copCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopCopago(Double copCopago) {
|
||||||
|
this.copCopago = copCopago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getCopTope() {
|
||||||
|
return copTope;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopTope(Double copTope) {
|
||||||
|
this.copTope = copTope;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,846 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_REPDR")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwRepdr.findAll", query = "SELECT v FROM VwRepdr v")})
|
||||||
|
public class VwRepdr implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 31218217331458L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@Column(name = "PER_CODIGO")
|
||||||
|
private Integer perCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "USU_NOMBRE")
|
||||||
|
private String usuNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_DESCRIPCION")
|
||||||
|
private String usuDescripcion;
|
||||||
|
@Size(max = 1023)
|
||||||
|
@Column(name = "USU_URL_IMAGEN")
|
||||||
|
private String usuUrlImagen;
|
||||||
|
@Column(name = "USU_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date usuFechaRegistro;
|
||||||
|
@Column(name = "USU_FECHA_TOKEN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date usuFechaToken;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_TOKEN")
|
||||||
|
private String usuToken;
|
||||||
|
@Column(name = "USU_TIEMPO_TOKEN")
|
||||||
|
private Integer usuTiempoToken;
|
||||||
|
@Column(name = "USU_ESTADO")
|
||||||
|
private Short usuEstado;
|
||||||
|
@Column(name = "DET_TIPO_IDENTIFICACION")
|
||||||
|
private Integer detTipoIdentificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "PER_IDENTIFICACION")
|
||||||
|
private String perIdentificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "PER_NOMBRES")
|
||||||
|
private String perNombres;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "PER_APELLIDOS")
|
||||||
|
private String perApellidos;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "PER_NACIONALIDAD")
|
||||||
|
private String perNacionalidad;
|
||||||
|
@Column(name = "PER_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaRegistro;
|
||||||
|
@Column(name = "PER_FECHA_NACIMIENTO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaNacimiento;
|
||||||
|
@Column(name = "PER_ESTADO")
|
||||||
|
private Short perEstado;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_TIPO_PERSONA")
|
||||||
|
private Integer detTipoPersona;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PEP_OBSERVACION")
|
||||||
|
private String pepObservacion;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "PEP_MONTO_COBERTURA")
|
||||||
|
private Double pepMontoCobertura;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_IFI")
|
||||||
|
private Integer detIfi;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_ESTADO")
|
||||||
|
private Integer detEstado;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "POL_CONTRATO")
|
||||||
|
private String polContrato;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "POL_CODIGO")
|
||||||
|
private Integer polCodigo;
|
||||||
|
@Column(name = "POL_DIAS_COBERTURA")
|
||||||
|
private Integer polDiasCobertura;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_OBSERVACION")
|
||||||
|
private String polObservacion;
|
||||||
|
@Column(name = "POL_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaInicio;
|
||||||
|
@Column(name = "POL_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaFin;
|
||||||
|
@Column(name = "POL_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaRegistro;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_MODALIDAD")
|
||||||
|
private Integer detModalidad;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_DEDUCIBLE")
|
||||||
|
private Integer detDeducible;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_TARIFARIO")
|
||||||
|
private Integer detTarifario;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PLA_RUTA_CONTRATO")
|
||||||
|
private String plaRutaContrato;
|
||||||
|
@Column(name = "PLA_VALOR_MENSUAL")
|
||||||
|
private Double plaValorMensual;
|
||||||
|
@Column(name = "PLA_POR_DESCUENTO")
|
||||||
|
private Double plaPorDescuento;
|
||||||
|
@Column(name = "PLA_NUM_BENEFICIARIOS")
|
||||||
|
private Integer plaNumBeneficiarios;
|
||||||
|
@Column(name = "PLA_COBERTURA_MAXIMA")
|
||||||
|
private Double plaCoberturaMaxima;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_ESTADO")
|
||||||
|
private Short plaEstado;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "DET_NEMONICO")
|
||||||
|
private String detNemonico;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "DET_TIPO")
|
||||||
|
private String detTipo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE")
|
||||||
|
private String detNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_ORIGEN")
|
||||||
|
private String detOrigen;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESTINO")
|
||||||
|
private String detDestino;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESCRIPCION")
|
||||||
|
private String detDescripcion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PEP_CODIGO")
|
||||||
|
private Integer pepCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PER_CODIGO_0")
|
||||||
|
private Integer perCodigo0;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "POL_CODIGO_0")
|
||||||
|
private Integer polCodigo0;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "EMP_CODIGO")
|
||||||
|
private Integer empCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_CODIGO")
|
||||||
|
private Integer plaCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_MODALIDAD_0")
|
||||||
|
private Integer detModalidad0;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_PERIODICIDAD")
|
||||||
|
private Integer detPeriodicidad;
|
||||||
|
@Column(name = "DET_FORMA_PAGO")
|
||||||
|
private Integer detFormaPago;
|
||||||
|
@Size(max = 15)
|
||||||
|
@Column(name = "POL_CERTIFICADO")
|
||||||
|
private String polCertificado;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_BROKER")
|
||||||
|
private String polBroker;
|
||||||
|
@Column(name = "DET_GENERO")
|
||||||
|
private Integer detGenero;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PER_DIRECCION")
|
||||||
|
private String perDireccion;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PER_MAIL")
|
||||||
|
private String perMail;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "USU_CODIGO")
|
||||||
|
private Integer usuCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 20)
|
||||||
|
@Column(name = "USU_USUARIO")
|
||||||
|
private String usuUsuario;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE_0")
|
||||||
|
private String detNombre0;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "CAT_CODIGO")
|
||||||
|
private Integer catCodigo;
|
||||||
|
@Column(name = "DET_PROVINCIA")
|
||||||
|
private Integer detProvincia;
|
||||||
|
@Column(name = "PLA_VALOR_DEDUCIBLE")
|
||||||
|
private Double plaValorDeducible;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "PLA_PRODUCTO")
|
||||||
|
private String plaProducto;
|
||||||
|
@Column(name = "PLA_EDAD_TITULAR")
|
||||||
|
private Integer plaEdadTitular;
|
||||||
|
@Column(name = "PLA_EDAD_HIJOS")
|
||||||
|
private Integer plaEdadHijos;
|
||||||
|
@Column(name = "PLA_VALOR_ANUAL")
|
||||||
|
private Double plaValorAnual;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_TIPO_0")
|
||||||
|
private Integer detTipo0;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_CODIGO")
|
||||||
|
private Integer detCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE_1")
|
||||||
|
private String detNombre1;
|
||||||
|
|
||||||
|
public VwRepdr() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPerCodigo() {
|
||||||
|
return perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerCodigo(Integer perCodigo) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuNombre() {
|
||||||
|
return usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuNombre(String usuNombre) {
|
||||||
|
this.usuNombre = usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuDescripcion() {
|
||||||
|
return usuDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuDescripcion(String usuDescripcion) {
|
||||||
|
this.usuDescripcion = usuDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuUrlImagen() {
|
||||||
|
return usuUrlImagen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuUrlImagen(String usuUrlImagen) {
|
||||||
|
this.usuUrlImagen = usuUrlImagen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUsuFechaRegistro() {
|
||||||
|
return usuFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuFechaRegistro(Date usuFechaRegistro) {
|
||||||
|
this.usuFechaRegistro = usuFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUsuFechaToken() {
|
||||||
|
return usuFechaToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuFechaToken(Date usuFechaToken) {
|
||||||
|
this.usuFechaToken = usuFechaToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuToken() {
|
||||||
|
return usuToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuToken(String usuToken) {
|
||||||
|
this.usuToken = usuToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuTiempoToken() {
|
||||||
|
return usuTiempoToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuTiempoToken(Integer usuTiempoToken) {
|
||||||
|
this.usuTiempoToken = usuTiempoToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getUsuEstado() {
|
||||||
|
return usuEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuEstado(Short usuEstado) {
|
||||||
|
this.usuEstado = usuEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipoIdentificacion() {
|
||||||
|
return detTipoIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoIdentificacion(Integer detTipoIdentificacion) {
|
||||||
|
this.detTipoIdentificacion = detTipoIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerIdentificacion() {
|
||||||
|
return perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerIdentificacion(String perIdentificacion) {
|
||||||
|
this.perIdentificacion = perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerNombres() {
|
||||||
|
return perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerNombres(String perNombres) {
|
||||||
|
this.perNombres = perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerApellidos() {
|
||||||
|
return perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerApellidos(String perApellidos) {
|
||||||
|
this.perApellidos = perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerNacionalidad() {
|
||||||
|
return perNacionalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerNacionalidad(String perNacionalidad) {
|
||||||
|
this.perNacionalidad = perNacionalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaRegistro() {
|
||||||
|
return perFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaRegistro(Date perFechaRegistro) {
|
||||||
|
this.perFechaRegistro = perFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaNacimiento() {
|
||||||
|
return perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaNacimiento(Date perFechaNacimiento) {
|
||||||
|
this.perFechaNacimiento = perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPerEstado() {
|
||||||
|
return perEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerEstado(Short perEstado) {
|
||||||
|
this.perEstado = perEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipoPersona() {
|
||||||
|
return detTipoPersona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoPersona(Integer detTipoPersona) {
|
||||||
|
this.detTipoPersona = detTipoPersona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPepObservacion() {
|
||||||
|
return pepObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepObservacion(String pepObservacion) {
|
||||||
|
this.pepObservacion = pepObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPepMontoCobertura() {
|
||||||
|
return pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepMontoCobertura(Double pepMontoCobertura) {
|
||||||
|
this.pepMontoCobertura = pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(Integer detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(Integer detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolContrato() {
|
||||||
|
return polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolContrato(String polContrato) {
|
||||||
|
this.polContrato = polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Integer polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolDiasCobertura() {
|
||||||
|
return polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolDiasCobertura(Integer polDiasCobertura) {
|
||||||
|
this.polDiasCobertura = polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolObservacion() {
|
||||||
|
return polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolObservacion(String polObservacion) {
|
||||||
|
this.polObservacion = polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaInicio() {
|
||||||
|
return polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaInicio(Date polFechaInicio) {
|
||||||
|
this.polFechaInicio = polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaFin() {
|
||||||
|
return polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaFin(Date polFechaFin) {
|
||||||
|
this.polFechaFin = polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaRegistro() {
|
||||||
|
return polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaRegistro(Date polFechaRegistro) {
|
||||||
|
this.polFechaRegistro = polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetModalidad() {
|
||||||
|
return detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetModalidad(Integer detModalidad) {
|
||||||
|
this.detModalidad = detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetDeducible() {
|
||||||
|
return detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDeducible(Integer detDeducible) {
|
||||||
|
this.detDeducible = detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTarifario() {
|
||||||
|
return detTarifario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTarifario(Integer detTarifario) {
|
||||||
|
this.detTarifario = detTarifario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaRutaContrato() {
|
||||||
|
return plaRutaContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaRutaContrato(String plaRutaContrato) {
|
||||||
|
this.plaRutaContrato = plaRutaContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorMensual() {
|
||||||
|
return plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorMensual(Double plaValorMensual) {
|
||||||
|
this.plaValorMensual = plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaPorDescuento() {
|
||||||
|
return plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaPorDescuento(Double plaPorDescuento) {
|
||||||
|
this.plaPorDescuento = plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaNumBeneficiarios() {
|
||||||
|
return plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNumBeneficiarios(Integer plaNumBeneficiarios) {
|
||||||
|
this.plaNumBeneficiarios = plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaCoberturaMaxima() {
|
||||||
|
return plaCoberturaMaxima;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCoberturaMaxima(Double plaCoberturaMaxima) {
|
||||||
|
this.plaCoberturaMaxima = plaCoberturaMaxima;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPlaEstado() {
|
||||||
|
return plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEstado(Short plaEstado) {
|
||||||
|
this.plaEstado = plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNemonico() {
|
||||||
|
return detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNemonico(String detNemonico) {
|
||||||
|
this.detNemonico = detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(String detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre() {
|
||||||
|
return detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre(String detNombre) {
|
||||||
|
this.detNombre = detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetOrigen() {
|
||||||
|
return detOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetOrigen(String detOrigen) {
|
||||||
|
this.detOrigen = detOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDestino() {
|
||||||
|
return detDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDestino(String detDestino) {
|
||||||
|
this.detDestino = detDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDescripcion() {
|
||||||
|
return detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDescripcion(String detDescripcion) {
|
||||||
|
this.detDescripcion = detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPepCodigo() {
|
||||||
|
return pepCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepCodigo(Integer pepCodigo) {
|
||||||
|
this.pepCodigo = pepCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPerCodigo0() {
|
||||||
|
return perCodigo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerCodigo0(Integer perCodigo0) {
|
||||||
|
this.perCodigo0 = perCodigo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolCodigo0() {
|
||||||
|
return polCodigo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo0(Integer polCodigo0) {
|
||||||
|
this.polCodigo0 = polCodigo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmpCodigo() {
|
||||||
|
return empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpCodigo(Integer empCodigo) {
|
||||||
|
this.empCodigo = empCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetModalidad0() {
|
||||||
|
return detModalidad0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetModalidad0(Integer detModalidad0) {
|
||||||
|
this.detModalidad0 = detModalidad0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetPeriodicidad() {
|
||||||
|
return detPeriodicidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetPeriodicidad(Integer detPeriodicidad) {
|
||||||
|
this.detPeriodicidad = detPeriodicidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetFormaPago() {
|
||||||
|
return detFormaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetFormaPago(Integer detFormaPago) {
|
||||||
|
this.detFormaPago = detFormaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolCertificado() {
|
||||||
|
return polCertificado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCertificado(String polCertificado) {
|
||||||
|
this.polCertificado = polCertificado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolBroker() {
|
||||||
|
return polBroker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolBroker(String polBroker) {
|
||||||
|
this.polBroker = polBroker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetGenero() {
|
||||||
|
return detGenero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetGenero(Integer detGenero) {
|
||||||
|
this.detGenero = detGenero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerDireccion() {
|
||||||
|
return perDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerDireccion(String perDireccion) {
|
||||||
|
this.perDireccion = perDireccion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerMail() {
|
||||||
|
return perMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerMail(String perMail) {
|
||||||
|
this.perMail = perMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuCodigo() {
|
||||||
|
return usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuCodigo(Integer usuCodigo) {
|
||||||
|
this.usuCodigo = usuCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuUsuario() {
|
||||||
|
return usuUsuario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuUsuario(String usuUsuario) {
|
||||||
|
this.usuUsuario = usuUsuario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre0() {
|
||||||
|
return detNombre0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre0(String detNombre0) {
|
||||||
|
this.detNombre0 = detNombre0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCatCodigo() {
|
||||||
|
return catCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCatCodigo(Integer catCodigo) {
|
||||||
|
this.catCodigo = catCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetProvincia() {
|
||||||
|
return detProvincia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetProvincia(Integer detProvincia) {
|
||||||
|
this.detProvincia = detProvincia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorDeducible() {
|
||||||
|
return plaValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorDeducible(Double plaValorDeducible) {
|
||||||
|
this.plaValorDeducible = plaValorDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaProducto() {
|
||||||
|
return plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaProducto(String plaProducto) {
|
||||||
|
this.plaProducto = plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaEdadTitular() {
|
||||||
|
return plaEdadTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEdadTitular(Integer plaEdadTitular) {
|
||||||
|
this.plaEdadTitular = plaEdadTitular;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaEdadHijos() {
|
||||||
|
return plaEdadHijos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEdadHijos(Integer plaEdadHijos) {
|
||||||
|
this.plaEdadHijos = plaEdadHijos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorAnual() {
|
||||||
|
return plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorAnual(Double plaValorAnual) {
|
||||||
|
this.plaValorAnual = plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipo0() {
|
||||||
|
return detTipo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo0(Integer detTipo0) {
|
||||||
|
this.detTipo0 = detTipo0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetCodigo() {
|
||||||
|
return detCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetCodigo(Integer detCodigo) {
|
||||||
|
this.detCodigo = detCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre1() {
|
||||||
|
return detNombre1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre1(String detNombre1) {
|
||||||
|
this.detNombre1 = detNombre1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,209 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Lob;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_REPORTE_PRODUCCION")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwReporteProduccion.findAll", query = "SELECT v FROM VwReporteProduccion v")})
|
||||||
|
public class VwReporteProduccion implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 55920685342860L;
|
||||||
|
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "PER_NOMBRES")
|
||||||
|
private String perNombres;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "PER_APELLIDOS")
|
||||||
|
private String perApellidos;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "PER_IDENTIFICACION")
|
||||||
|
private String perIdentificacion;
|
||||||
|
@Column(name = "PER_FECHA_NACIMIENTO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaNacimiento;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE_0")
|
||||||
|
private String detNombre0;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
|
||||||
|
@Column(name = "PLA_VALOR_MENSUAL")
|
||||||
|
private Double plaValorMensual;
|
||||||
|
@Column(name = "PLA_VALOR_ANUAL")
|
||||||
|
private Double plaValorAnual;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE_1")
|
||||||
|
private String detNombre1;
|
||||||
|
@Column(name = "PEP_MONTO_COBERTURA")
|
||||||
|
private Double pepMontoCobertura;
|
||||||
|
@Column(name = "POL_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaRegistro;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE")
|
||||||
|
private String detNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PER_MAIL")
|
||||||
|
private String perMail;
|
||||||
|
@Lob
|
||||||
|
@Size(max = 16777215)
|
||||||
|
@Column(name = "NUMEROS_CONTACTO")
|
||||||
|
private String numerosContacto;
|
||||||
|
|
||||||
|
public VwReporteProduccion() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerNombres() {
|
||||||
|
return perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerNombres(String perNombres) {
|
||||||
|
this.perNombres = perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerApellidos() {
|
||||||
|
return perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerApellidos(String perApellidos) {
|
||||||
|
this.perApellidos = perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerIdentificacion() {
|
||||||
|
return perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerIdentificacion(String perIdentificacion) {
|
||||||
|
this.perIdentificacion = perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaNacimiento() {
|
||||||
|
return perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaNacimiento(Date perFechaNacimiento) {
|
||||||
|
this.perFechaNacimiento = perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre0() {
|
||||||
|
return detNombre0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre0(String detNombre0) {
|
||||||
|
this.detNombre0 = detNombre0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorMensual() {
|
||||||
|
return plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorMensual(Double plaValorMensual) {
|
||||||
|
this.plaValorMensual = plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorAnual() {
|
||||||
|
return plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorAnual(Double plaValorAnual) {
|
||||||
|
this.plaValorAnual = plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre1() {
|
||||||
|
return detNombre1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre1(String detNombre1) {
|
||||||
|
this.detNombre1 = detNombre1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPepMontoCobertura() {
|
||||||
|
return pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepMontoCobertura(Double pepMontoCobertura) {
|
||||||
|
this.pepMontoCobertura = pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaRegistro() {
|
||||||
|
return polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaRegistro(Date polFechaRegistro) {
|
||||||
|
this.polFechaRegistro = polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre() {
|
||||||
|
return detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre(String detNombre) {
|
||||||
|
this.detNombre = detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerMail() {
|
||||||
|
return perMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerMail(String perMail) {
|
||||||
|
this.perMail = perMail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNumerosContacto() {
|
||||||
|
return numerosContacto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumerosContacto(String numerosContacto) {
|
||||||
|
this.numerosContacto = numerosContacto;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,139 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_REPPRIMA_PLAN")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwRepprimaPlan.findAll", query = "SELECT v FROM VwRepprimaPlan v")})
|
||||||
|
public class VwRepprimaPlan implements Serializable {
|
||||||
|
|
||||||
|
private static final Long serialVersionUID = 277715052404851L;
|
||||||
|
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_CODIGO")
|
||||||
|
private Integer plaCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
@Size(max = 100)
|
||||||
|
@Column(name = "PLA_PRODUCTO")
|
||||||
|
private String plaProducto;
|
||||||
|
@Column(name = "PLA_VALOR_ANUAL")
|
||||||
|
private Double plaValorAnual;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "NUMERO_POLIZAS")
|
||||||
|
private Long numeroPolizas;
|
||||||
|
@Id
|
||||||
|
@Column(name = "SUMA_TOTAL_POLIZAS")
|
||||||
|
private Double sumaTotalPolizas;
|
||||||
|
@Column(name = "VALOR_MENSUAL_POLIZA")
|
||||||
|
private Double valorMensualPoliza;
|
||||||
|
@Column(name = "VALOR_MENSUAL")
|
||||||
|
private Double valorMensual;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "PERIODICIDAD")
|
||||||
|
private String periodicidad;
|
||||||
|
|
||||||
|
public VwRepprimaPlan() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaProducto() {
|
||||||
|
return plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaProducto(String plaProducto) {
|
||||||
|
this.plaProducto = plaProducto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorAnual() {
|
||||||
|
return plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorAnual(Double plaValorAnual) {
|
||||||
|
this.plaValorAnual = plaValorAnual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getNumeroPolizas() {
|
||||||
|
return numeroPolizas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumeroPolizas(Long numeroPolizas) {
|
||||||
|
this.numeroPolizas = numeroPolizas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getSumaTotalPolizas() {
|
||||||
|
return sumaTotalPolizas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSumaTotalPolizas(Double sumaTotalPolizas) {
|
||||||
|
this.sumaTotalPolizas = sumaTotalPolizas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getValorMensualPoliza() {
|
||||||
|
return valorMensualPoliza;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValorMensualPoliza(Double valorMensualPoliza) {
|
||||||
|
this.valorMensualPoliza = valorMensualPoliza;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getValorMensual() {
|
||||||
|
return valorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValorMensual(Double valorMensual) {
|
||||||
|
this.valorMensual = valorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPeriodicidad() {
|
||||||
|
return periodicidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPeriodicidad(String periodicidad) {
|
||||||
|
this.periodicidad = periodicidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,562 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.erp.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import javax.persistence.Basic;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.NamedQueries;
|
||||||
|
import javax.persistence.NamedQuery;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
@Entity
|
||||||
|
@Table(name = "VW_USUARIO_PERSONA_POLIZA_PLAN")
|
||||||
|
@XmlRootElement
|
||||||
|
@NamedQueries({
|
||||||
|
@NamedQuery(name = "VwUsuarioPersonaPolizaPlan.findAll", query = "SELECT v FROM VwUsuarioPersonaPolizaPlan v")
|
||||||
|
})
|
||||||
|
public class VwUsuarioPersonaPolizaPlan implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 23735178262551L;
|
||||||
|
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "USU_NOMBRE")
|
||||||
|
private String usuNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_DESCRIPCION")
|
||||||
|
private String usuDescripcion;
|
||||||
|
@Size(max = 1023)
|
||||||
|
@Column(name = "USU_URL_IMAGEN")
|
||||||
|
private String usuUrlImagen;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "USU_TOKEN")
|
||||||
|
private String usuToken;
|
||||||
|
@Column(name = "DET_TIPO_IDENTIFICACION")
|
||||||
|
private Integer detTipoIdentificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "PER_IDENTIFICACION")
|
||||||
|
private String perIdentificacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "PER_NOMBRES")
|
||||||
|
private String perNombres;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "PER_APELLIDOS")
|
||||||
|
private String perApellidos;
|
||||||
|
@Size(max = 50)
|
||||||
|
@Column(name = "PER_NACIONALIDAD")
|
||||||
|
private String perNacionalidad;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_TIPO_PERSONA")
|
||||||
|
private Integer detTipoPersona;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PEP_OBSERVACION")
|
||||||
|
private String pepObservacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_IFI")
|
||||||
|
private Integer detIfi;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_ESTADO")
|
||||||
|
private Integer detEstado;
|
||||||
|
@Id
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 15)
|
||||||
|
@Column(name = "POL_CONTRATO")
|
||||||
|
private String polContrato;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "POL_CODIGO")
|
||||||
|
private Integer polCodigo;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "POL_OBSERVACION")
|
||||||
|
private String polObservacion;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_MODALIDAD")
|
||||||
|
private Integer detModalidad;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_DEDUCIBLE")
|
||||||
|
private Integer detDeducible;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "DET_TARIFARIO")
|
||||||
|
private Integer detTarifario;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 100)
|
||||||
|
@Column(name = "PLA_NOMBRE")
|
||||||
|
private String plaNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "PLA_RUTA_CONTRATO")
|
||||||
|
private String plaRutaContrato;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_CODIGO")
|
||||||
|
private Integer plaCodigo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Column(name = "PLA_ESTADO")
|
||||||
|
private Short plaEstado;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 7)
|
||||||
|
@Column(name = "DET_NEMONICO")
|
||||||
|
private String detNemonico;
|
||||||
|
@Size(max = 20)
|
||||||
|
@Column(name = "DET_TIPO")
|
||||||
|
private String detTipo;
|
||||||
|
@Basic(optional = false)
|
||||||
|
@NotNull
|
||||||
|
@Size(min = 1, max = 50)
|
||||||
|
@Column(name = "DET_NOMBRE")
|
||||||
|
private String detNombre;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_ORIGEN")
|
||||||
|
private String detOrigen;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESTINO")
|
||||||
|
private String detDestino;
|
||||||
|
@Size(max = 255)
|
||||||
|
@Column(name = "DET_DESCRIPCION")
|
||||||
|
private String detDescripcion;
|
||||||
|
@Column(name = "PER_CODIGO")
|
||||||
|
private Integer perCodigo;
|
||||||
|
@Column(name = "USU_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date usuFechaRegistro;
|
||||||
|
@Column(name = "USU_FECHA_TOKEN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date usuFechaToken;
|
||||||
|
@Column(name = "USU_TIEMPO_TOKEN")
|
||||||
|
private Integer usuTiempoToken;
|
||||||
|
@Column(name = "USU_ESTADO")
|
||||||
|
private Short usuEstado;
|
||||||
|
@Column(name = "PER_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaRegistro;
|
||||||
|
@Column(name = "PER_FECHA_NACIMIENTO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date perFechaNacimiento;
|
||||||
|
@Column(name = "PER_ESTADO")
|
||||||
|
private Short perEstado;
|
||||||
|
@Column(name = "PEP_MONTO_COBERTURA")
|
||||||
|
private Double pepMontoCobertura;
|
||||||
|
@Column(name = "POL_DIAS_COBERTURA")
|
||||||
|
private Integer polDiasCobertura;
|
||||||
|
@Column(name = "POL_FECHA_INICIO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaInicio;
|
||||||
|
@Column(name = "POL_FECHA_FIN")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaFin;
|
||||||
|
@Column(name = "POL_FECHA_REGISTRO")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private Date polFechaRegistro;
|
||||||
|
@Column(name = "PLA_VALOR_MENSUAL")
|
||||||
|
private Double plaValorMensual;
|
||||||
|
@Column(name = "PLA_POR_DESCUENTO")
|
||||||
|
private Double plaPorDescuento;
|
||||||
|
@Column(name = "PLA_NUM_BENEFICIARIOS")
|
||||||
|
private Integer plaNumBeneficiarios;
|
||||||
|
@Column(name = "PLA_COBERTURA_MAXIMA")
|
||||||
|
private Double plaCoberturaMaxima;
|
||||||
|
|
||||||
|
public VwUsuarioPersonaPolizaPlan() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuNombre() {
|
||||||
|
return usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuNombre(String usuNombre) {
|
||||||
|
this.usuNombre = usuNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuDescripcion() {
|
||||||
|
return usuDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuDescripcion(String usuDescripcion) {
|
||||||
|
this.usuDescripcion = usuDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuUrlImagen() {
|
||||||
|
return usuUrlImagen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuUrlImagen(String usuUrlImagen) {
|
||||||
|
this.usuUrlImagen = usuUrlImagen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsuToken() {
|
||||||
|
return usuToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuToken(String usuToken) {
|
||||||
|
this.usuToken = usuToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipoIdentificacion() {
|
||||||
|
return detTipoIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoIdentificacion(Integer detTipoIdentificacion) {
|
||||||
|
this.detTipoIdentificacion = detTipoIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerIdentificacion() {
|
||||||
|
return perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerIdentificacion(String perIdentificacion) {
|
||||||
|
this.perIdentificacion = perIdentificacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerNombres() {
|
||||||
|
return perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerNombres(String perNombres) {
|
||||||
|
this.perNombres = perNombres;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerApellidos() {
|
||||||
|
return perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerApellidos(String perApellidos) {
|
||||||
|
this.perApellidos = perApellidos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPerNacionalidad() {
|
||||||
|
return perNacionalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerNacionalidad(String perNacionalidad) {
|
||||||
|
this.perNacionalidad = perNacionalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTipoPersona() {
|
||||||
|
return detTipoPersona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipoPersona(Integer detTipoPersona) {
|
||||||
|
this.detTipoPersona = detTipoPersona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPepObservacion() {
|
||||||
|
return pepObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepObservacion(String pepObservacion) {
|
||||||
|
this.pepObservacion = pepObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetIfi() {
|
||||||
|
return detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetIfi(Integer detIfi) {
|
||||||
|
this.detIfi = detIfi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetEstado() {
|
||||||
|
return detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetEstado(Integer detEstado) {
|
||||||
|
this.detEstado = detEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolContrato() {
|
||||||
|
return polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolContrato(String polContrato) {
|
||||||
|
this.polContrato = polContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolCodigo() {
|
||||||
|
return polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolCodigo(Integer polCodigo) {
|
||||||
|
this.polCodigo = polCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPolObservacion() {
|
||||||
|
return polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolObservacion(String polObservacion) {
|
||||||
|
this.polObservacion = polObservacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetModalidad() {
|
||||||
|
return detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetModalidad(Integer detModalidad) {
|
||||||
|
this.detModalidad = detModalidad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetDeducible() {
|
||||||
|
return detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDeducible(Integer detDeducible) {
|
||||||
|
this.detDeducible = detDeducible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDetTarifario() {
|
||||||
|
return detTarifario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTarifario(Integer detTarifario) {
|
||||||
|
this.detTarifario = detTarifario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaNombre() {
|
||||||
|
return plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNombre(String plaNombre) {
|
||||||
|
this.plaNombre = plaNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaRutaContrato() {
|
||||||
|
return plaRutaContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaRutaContrato(String plaRutaContrato) {
|
||||||
|
this.plaRutaContrato = plaRutaContrato;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaCodigo() {
|
||||||
|
return plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCodigo(Integer plaCodigo) {
|
||||||
|
this.plaCodigo = plaCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPlaEstado() {
|
||||||
|
return plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaEstado(Short plaEstado) {
|
||||||
|
this.plaEstado = plaEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNemonico() {
|
||||||
|
return detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNemonico(String detNemonico) {
|
||||||
|
this.detNemonico = detNemonico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetTipo() {
|
||||||
|
return detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetTipo(String detTipo) {
|
||||||
|
this.detTipo = detTipo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetNombre() {
|
||||||
|
return detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetNombre(String detNombre) {
|
||||||
|
this.detNombre = detNombre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetOrigen() {
|
||||||
|
return detOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetOrigen(String detOrigen) {
|
||||||
|
this.detOrigen = detOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDestino() {
|
||||||
|
return detDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDestino(String detDestino) {
|
||||||
|
this.detDestino = detDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetDescripcion() {
|
||||||
|
return detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetDescripcion(String detDescripcion) {
|
||||||
|
this.detDescripcion = detDescripcion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPerCodigo() {
|
||||||
|
return perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerCodigo(Integer perCodigo) {
|
||||||
|
this.perCodigo = perCodigo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUsuFechaRegistro() {
|
||||||
|
return usuFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuFechaRegistro(Date usuFechaRegistro) {
|
||||||
|
this.usuFechaRegistro = usuFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUsuFechaToken() {
|
||||||
|
return usuFechaToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuFechaToken(Date usuFechaToken) {
|
||||||
|
this.usuFechaToken = usuFechaToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuTiempoToken() {
|
||||||
|
return usuTiempoToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuTiempoToken(Integer usuTiempoToken) {
|
||||||
|
this.usuTiempoToken = usuTiempoToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getUsuEstado() {
|
||||||
|
return usuEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuEstado(Short usuEstado) {
|
||||||
|
this.usuEstado = usuEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaRegistro() {
|
||||||
|
return perFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaRegistro(Date perFechaRegistro) {
|
||||||
|
this.perFechaRegistro = perFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPerFechaNacimiento() {
|
||||||
|
return perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerFechaNacimiento(Date perFechaNacimiento) {
|
||||||
|
this.perFechaNacimiento = perFechaNacimiento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getPerEstado() {
|
||||||
|
return perEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPerEstado(Short perEstado) {
|
||||||
|
this.perEstado = perEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPepMontoCobertura() {
|
||||||
|
return pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPepMontoCobertura(Double pepMontoCobertura) {
|
||||||
|
this.pepMontoCobertura = pepMontoCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPolDiasCobertura() {
|
||||||
|
return polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolDiasCobertura(Integer polDiasCobertura) {
|
||||||
|
this.polDiasCobertura = polDiasCobertura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaInicio() {
|
||||||
|
return polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaInicio(Date polFechaInicio) {
|
||||||
|
this.polFechaInicio = polFechaInicio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaFin() {
|
||||||
|
return polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaFin(Date polFechaFin) {
|
||||||
|
this.polFechaFin = polFechaFin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPolFechaRegistro() {
|
||||||
|
return polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPolFechaRegistro(Date polFechaRegistro) {
|
||||||
|
this.polFechaRegistro = polFechaRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaValorMensual() {
|
||||||
|
return plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaValorMensual(Double plaValorMensual) {
|
||||||
|
this.plaValorMensual = plaValorMensual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaPorDescuento() {
|
||||||
|
return plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaPorDescuento(Double plaPorDescuento) {
|
||||||
|
this.plaPorDescuento = plaPorDescuento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPlaNumBeneficiarios() {
|
||||||
|
return plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaNumBeneficiarios(Integer plaNumBeneficiarios) {
|
||||||
|
this.plaNumBeneficiarios = plaNumBeneficiarios;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPlaCoberturaMaxima() {
|
||||||
|
return plaCoberturaMaxima;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaCoberturaMaxima(Double plaCoberturaMaxima) {
|
||||||
|
this.plaCoberturaMaxima = plaCoberturaMaxima;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,75 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
|
||||||
|
<persistence-unit name="wmpPU" transaction-type="JTA">
|
||||||
|
<!--<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>-->
|
||||||
|
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
|
||||||
|
<jta-data-source>jdbc/werpDS</jta-data-source>
|
||||||
|
<class>com.qsoft.wmp.model.Prestador</class>
|
||||||
|
<class>com.qsoft.wmp.model.Comprobante</class>
|
||||||
|
<class>com.qsoft.erp.model.Documento</class>
|
||||||
|
<class>com.qsoft.erp.model.Mensaje</class>
|
||||||
|
<class>com.qsoft.erp.model.Servicios</class>
|
||||||
|
<class>com.qsoft.erp.model.Persona</class>
|
||||||
|
<class>com.qsoft.erp.model.DetalleLiquidacion</class>
|
||||||
|
<class>com.qsoft.erp.model.Localizacion</class>
|
||||||
|
<class>com.qsoft.erp.model.VwRepdr</class>
|
||||||
|
<class>com.qsoft.erp.model.Privilegio</class>
|
||||||
|
<class>com.qsoft.erp.model.DetalleSalida</class>
|
||||||
|
<class>com.qsoft.erp.model.Liquidacion</class>
|
||||||
|
<class>com.qsoft.erp.model.Prestador</class>
|
||||||
|
<class>com.qsoft.erp.model.VwPagosCpn</class>
|
||||||
|
<class>com.qsoft.erp.model.Plan</class>
|
||||||
|
<class>com.qsoft.erp.model.DetalleCatalogo</class>
|
||||||
|
<class>com.qsoft.erp.model.UsuarioPassword</class>
|
||||||
|
<class>com.qsoft.erp.model.VwPrestacionesPlan</class>
|
||||||
|
<class>com.qsoft.erp.model.VwPolPerBan</class>
|
||||||
|
<class>com.qsoft.erp.model.Opcion</class>
|
||||||
|
<class>com.qsoft.erp.model.Plantilla</class>
|
||||||
|
<class>com.qsoft.erp.model.CoberturasPlan</class>
|
||||||
|
<class>com.qsoft.erp.model.VwLiqperpol</class>
|
||||||
|
<class>com.qsoft.erp.model.DetalleEntrada</class>
|
||||||
|
<class>com.qsoft.erp.model.Catalogo</class>
|
||||||
|
<class>com.qsoft.erp.model.Usuario</class>
|
||||||
|
<class>com.qsoft.erp.model.DetalleFactura</class>
|
||||||
|
<class>com.qsoft.erp.model.Parametro</class>
|
||||||
|
<class>com.qsoft.erp.model.VwRepprimaPlan</class>
|
||||||
|
<class>com.qsoft.erp.model.VwLiqto</class>
|
||||||
|
<class>com.qsoft.erp.model.TarifaLiquidacion</class>
|
||||||
|
<class>com.qsoft.erp.model.SucursalEmpresa</class>
|
||||||
|
<class>com.qsoft.erp.model.CuentaBancaria</class>
|
||||||
|
<class>com.qsoft.erp.model.Email</class>
|
||||||
|
<class>com.qsoft.erp.model.Otp</class>
|
||||||
|
<class>com.qsoft.erp.model.VwUsuarioPersonaPolizaPlan</class>
|
||||||
|
<class>com.qsoft.erp.model.Tarifario</class>
|
||||||
|
<class>com.qsoft.erp.model.Secuencia</class>
|
||||||
|
<class>com.qsoft.erp.model.Poliza</class>
|
||||||
|
<class>com.qsoft.erp.model.Rol</class>
|
||||||
|
<class>com.qsoft.erp.model.Pago</class>
|
||||||
|
<class>com.qsoft.erp.model.Telefono</class>
|
||||||
|
<class>com.qsoft.erp.model.PlantillaSmtp</class>
|
||||||
|
<class>com.qsoft.erp.model.VwReporteProduccion</class>
|
||||||
|
<class>com.qsoft.erp.model.Empresa</class>
|
||||||
|
<class>com.qsoft.erp.model.RolUsuario</class>
|
||||||
|
<class>com.qsoft.erp.model.VwPeliqpre</class>
|
||||||
|
<class>com.qsoft.erp.model.EstadoLiquidacion</class>
|
||||||
|
<class>com.qsoft.erp.model.Formulario</class>
|
||||||
|
<class>com.qsoft.erp.model.PersonaPoliza</class>
|
||||||
|
<class>com.qsoft.erp.model.Auditoria</class>
|
||||||
|
<class>com.qsoft.erp.model.EstadoAgendamiento</class>
|
||||||
|
<class>com.qsoft.erp.model.Agendamiento</class>
|
||||||
|
<class>com.qsoft.erp.model.PlanBroker</class>
|
||||||
|
<class>com.qsoft.erp.model.Honorario</class>
|
||||||
|
<class>com.qsoft.erp.model.HonorarioPlan</class>
|
||||||
|
<class>com.qsoft.erp.model.EstadoPoliza</class>
|
||||||
|
<properties>
|
||||||
|
<!--<property name="eclipselink.logging.level" value="FINEST"/>-->
|
||||||
|
<property name="eclipselink.logging.level" value="OFF"/>
|
||||||
|
<property name="eclipselink.logging.exceptions" value="true"/>
|
||||||
|
<property name="eclipselink.cache.shared.default" value="false"/>
|
||||||
|
<property name="eclipselink.cache.size.default" value="0"/>
|
||||||
|
<property name="eclipselink.cache.type.default" value="NONE"/>
|
||||||
|
<property name="eclipselink.query-results-cache" value="false"/>
|
||||||
|
<property name="eclipselink.weaving.changetracking" value="false"/>
|
||||||
|
</properties>
|
||||||
|
</persistence-unit>
|
||||||
|
</persistence>
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.qsoft.test;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.Period;
|
||||||
|
import java.time.format.DateTimeFormatter;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author james
|
||||||
|
*/
|
||||||
|
public class Tester {
|
||||||
|
|
||||||
|
public static void main(String[] args) throws IOException {
|
||||||
|
Date d = new Date();
|
||||||
|
DateTimeFormatter format = DateTimeFormatter.ofPattern("dd/MM/yyyy");
|
||||||
|
Period p = Period.between(LocalDate.parse("14/04/1984", format), LocalDate.now());
|
||||||
|
System.out.println("FECHA NUEVA " + p.getYears());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue