parent
edd154ab8f
commit
e48bcc11b1
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ModelWeb</artifactId>
|
<artifactId>ModelWeb</artifactId>
|
||||||
<version>1.0.48</version>
|
<version>1.1.49</version>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>rj-releases</id>
|
<id>rj-releases</id>
|
||||||
|
|
|
@ -42,7 +42,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "CATEGORIA_SEQ", sequenceName = "CATEGORIA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_SEQ", sequenceName = "CATEGORIA_SEQ", allocationSize = 1)
|
||||||
@AuditarClasse(nome = "CATEGORIA", tela = "Altera<EFBFBD><EFBFBD>o de Categoria")
|
@AuditarClasse(nome = "CATEGORIA", tela = "auditarClasse.Categoria")
|
||||||
@Table(name = "CATEGORIA")
|
@Table(name = "CATEGORIA")
|
||||||
public class Categoria implements Serializable, Auditavel<Categoria>{
|
public class Categoria implements Serializable, Auditavel<Categoria>{
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "CategoriaBloqueioImpPosterior", tela = "Alteração Ponto de Venda/Categoria/Bloqueio/ImpPosterior")
|
@AuditarClasse(nome = "CategoriaBloqueioImpPosterior", tela = "auditarClasse.CategoriaBloqueioImpPosterior")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "CAT_BLOQ_IMPPOSTERIOR_SEQ", sequenceName = "CAT_BLOQ_IMPPOSTERIOR_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CAT_BLOQ_IMPPOSTERIOR_SEQ", sequenceName = "CAT_BLOQ_IMPPOSTERIOR_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_BLOQ_IMPPOSTERIOR")
|
@Table(name = "CATEGORIA_BLOQ_IMPPOSTERIOR")
|
||||||
|
|
|
@ -32,7 +32,7 @@ import javax.persistence.SequenceGenerator;
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "CategoriaClase", tela = "Alteraçăo de Categoria Classe")
|
@AuditarClasse(nome = "CategoriaClase", tela = "auditarClasse.CategoriaClasse")
|
||||||
@SequenceGenerator(name = "CATEGORIA_CLASE_SEQ", sequenceName = "CATEGORIA_CLASE_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_CLASE_SEQ", sequenceName = "CATEGORIA_CLASE_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_CLASE")
|
@Table(name = "CATEGORIA_CLASE")
|
||||||
public class CategoriaClase implements Serializable, Auditavel<CategoriaClase> {
|
public class CategoriaClase implements Serializable, Auditavel<CategoriaClase> {
|
||||||
|
|
|
@ -34,7 +34,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "CategoriaCorrida", tela = "Alteração de Categoria Corrida")
|
@AuditarClasse(nome = "CategoriaCorrida", tela = "auditarClasse.CategoriaCorrida")
|
||||||
@SequenceGenerator(name = "CATEGORIA_CORRIDA_SEQ", sequenceName = "CATEGORIA_CORRIDA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_CORRIDA_SEQ", sequenceName = "CATEGORIA_CORRIDA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_CORRIDA")
|
@Table(name = "CATEGORIA_CORRIDA")
|
||||||
public class CategoriaCorrida implements Serializable, Auditavel<CategoriaCorrida> {
|
public class CategoriaCorrida implements Serializable, Auditavel<CategoriaCorrida> {
|
||||||
|
|
|
@ -41,7 +41,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "CATEGORIA_CTRL_SEQ", sequenceName = "CATEGORIA_CTRL_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_CTRL_SEQ", sequenceName = "CATEGORIA_CTRL_SEQ", allocationSize = 1)
|
||||||
@AuditarClasse(nome = "CategoriaCtrl", tela = "Alteraçăo de Categoria")
|
@AuditarClasse(nome = "CategoriaCtrl", tela = "auditarClasse.CategoriaCtrl")
|
||||||
@Table(name = "CATEGORIA_CTRL")
|
@Table(name = "CATEGORIA_CTRL")
|
||||||
public class CategoriaCtrl implements Serializable, Cloneable, Auditavel<CategoriaCtrl>{
|
public class CategoriaCtrl implements Serializable, Cloneable, Auditavel<CategoriaCtrl>{
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "CategoriaDescuento", tela = "Alteração de Categoria Desconto")
|
@AuditarClasse(nome = "CategoriaDescuento", tela = "auditarClasse.CategoriaDescuento")
|
||||||
@SequenceGenerator(name = "CATEGORIA_DESCUENTO_SEQ", sequenceName = "CATEGORIA_DESCUENTO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_DESCUENTO_SEQ", sequenceName = "CATEGORIA_DESCUENTO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_DESCUENTO")
|
@Table(name = "CATEGORIA_DESCUENTO")
|
||||||
public class CategoriaDescuento implements Serializable, Auditavel<CategoriaDescuento> {
|
public class CategoriaDescuento implements Serializable, Auditavel<CategoriaDescuento> {
|
||||||
|
|
|
@ -32,7 +32,7 @@ import javax.persistence.SequenceGenerator;
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "ReservacionPuntoVenta", tela = "Alteração de Marca de Categoria")
|
@AuditarClasse(nome = "CategoriaMarca", tela = "auditarClasse.CategoriaMarca=")
|
||||||
@SequenceGenerator(name = "CATEGORIA_MARCA_SEQ", sequenceName = "CATEGORIA_MARCA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_MARCA_SEQ", sequenceName = "CATEGORIA_MARCA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_MARCA")
|
@Table(name = "CATEGORIA_MARCA")
|
||||||
public class CategoriaMarca implements Serializable, Auditavel<CategoriaMarca> {
|
public class CategoriaMarca implements Serializable, Auditavel<CategoriaMarca> {
|
||||||
|
|
|
@ -32,7 +32,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "CategoriaMercado", tela = "Alteração de Categoria Mercado")
|
@AuditarClasse(nome = "CategoriaMercado", tela = "auditarClasse.CategoriaMercado")
|
||||||
@SequenceGenerator(name = "CATEGORIA_MERCADO_SEQ", sequenceName = "CATEGORIA_MERCADO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_MERCADO_SEQ", sequenceName = "CATEGORIA_MERCADO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_MERCADO")
|
@Table(name = "CATEGORIA_MERCADO")
|
||||||
public class CategoriaMercado implements Serializable,Auditavel<CategoriaMercado> {
|
public class CategoriaMercado implements Serializable,Auditavel<CategoriaMercado> {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarEntidade;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "CategoriaOrgao", tela = "Alteração de Categoria Orgao Concedente")
|
@AuditarClasse(nome = "CategoriaOrgao", tela = "auditarClasse.CategoriaOrgao")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "CATEGORIA_ORGAO_SEQ", sequenceName = "CATEGORIA_ORGAO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_ORGAO_SEQ", sequenceName = "CATEGORIA_ORGAO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_ORGAO")
|
@Table(name = "CATEGORIA_ORGAO")
|
||||||
|
|
|
@ -34,7 +34,7 @@ import javax.persistence.SequenceGenerator;
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "CategoriaDescuento", tela = "Alteração de Categoria Descuento Periodo")
|
@AuditarClasse(nome = "CategoriaDescuento", tela = "auditarClasse.CategoriaPeriodo")
|
||||||
@SequenceGenerator(name = "CATEGORIA_PERIODO_SEQ", sequenceName = "CATEGORIA_PERIODO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_PERIODO_SEQ", sequenceName = "CATEGORIA_PERIODO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_PERIODO")
|
@Table(name = "CATEGORIA_PERIODO")
|
||||||
public class CategoriaPeriodo implements Serializable, Auditavel<CategoriaPeriodo>{
|
public class CategoriaPeriodo implements Serializable, Auditavel<CategoriaPeriodo>{
|
||||||
|
|
|
@ -25,7 +25,7 @@ import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "CategoriaRuta", tela = "Alteração de Categoria de Linha")
|
@AuditarClasse(nome = "CategoriaRuta", tela = "auditarClasse.CategoriaRuta")
|
||||||
@SequenceGenerator(name = "CATEGORIA_RUTA_SEQ", sequenceName = "CATEGORIA_RUTA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_RUTA_SEQ", sequenceName = "CATEGORIA_RUTA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_RUTA")
|
@Table(name = "CATEGORIA_RUTA")
|
||||||
public class CategoriaRuta implements Serializable, Auditavel<CategoriaRuta> {
|
public class CategoriaRuta implements Serializable, Auditavel<CategoriaRuta> {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "CategoriaRutaExcecao", tela = "Alteração de Categoria Eexceção de linha")
|
@AuditarClasse(nome = "CategoriaRutaExcecao", tela = "auditarClasse.CategoriaRutaExcecao")
|
||||||
@SequenceGenerator(name = "CATEGORIA_RUTA_EXCECAO_SEQ", sequenceName = "CATEGORIA_RUTA_EXCECAO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CATEGORIA_RUTA_EXCECAO_SEQ", sequenceName = "CATEGORIA_RUTA_EXCECAO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CATEGORIA_RUTA_EXCECAO")
|
@Table(name = "CATEGORIA_RUTA_EXCECAO")
|
||||||
public class CategoriaRutaExcecao implements Serializable, Auditavel<CategoriaRutaExcecao> {
|
public class CategoriaRutaExcecao implements Serializable, Auditavel<CategoriaRutaExcecao> {
|
||||||
|
|
|
@ -37,7 +37,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "CategoriaDescuento", tela = "Alteração de Categoria Serviço")
|
@AuditarClasse(nome = "CategoriaDescuento", tela = "auditarClasse.ClaseServicio")
|
||||||
@SequenceGenerator(name = "CLASE_SERVICIO_SEQ", sequenceName = "CLASE_SERVICIO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CLASE_SERVICIO_SEQ", sequenceName = "CLASE_SERVICIO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CLASE_SERVICIO")
|
@Table(name = "CLASE_SERVICIO")
|
||||||
public class ClaseServicio implements Serializable, Auditavel<ClaseServicio> {
|
public class ClaseServicio implements Serializable, Auditavel<ClaseServicio> {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
* @author vjcor
|
* @author vjcor
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "CobrancaAdcPuntoVenta", tela = "Alteração Cobrança de Ponto de Venda")
|
@AuditarClasse(nome = "CobrancaAdcPuntoVenta", tela = "auditarClasse.CobrancaAdcPuntoVenta")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "COBRANCA_ADC_SEQ", sequenceName = "COBRANCA_ADC_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "COBRANCA_ADC_SEQ", sequenceName = "COBRANCA_ADC_SEQ", allocationSize = 1)
|
||||||
@Table(name = "COBRANCA_ADC_PUNTO_VENTA")
|
@Table(name = "COBRANCA_ADC_PUNTO_VENTA")
|
||||||
|
|
|
@ -20,7 +20,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "CoeficienteTarifa", tela = "Alteração de Coeficiente Tarifario")
|
@AuditarClasse(nome = "CoeficienteTarifa", tela = "auditarClasse.CoeficienteTarifa")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "COEFICIENTE_TARIFA_SEQ", sequenceName = "COEFICIENTE_TARIFA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "COEFICIENTE_TARIFA_SEQ", sequenceName = "COEFICIENTE_TARIFA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "COEFICIENTE_TARIFA")
|
@Table(name = "COEFICIENTE_TARIFA")
|
||||||
|
|
|
@ -21,13 +21,21 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.BooleanUtils;
|
||||||
import org.hibernate.annotations.Where;
|
import org.hibernate.annotations.Where;
|
||||||
|
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarLista;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@AuditarClasse(nome = "ConfRestricaoCanalVenta", tela = "auditarClasse.ConfRestricaoCanalVenta")
|
||||||
@SequenceGenerator(name = "CONF_RESTRICAO_CANALVENTA_SEQ", sequenceName = "CONF_RESTRICAO_CANALVENTA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CONF_RESTRICAO_CANALVENTA_SEQ", sequenceName = "CONF_RESTRICAO_CANALVENTA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CONF_RESTRICAO_CANALVENTA")
|
@Table(name = "CONF_RESTRICAO_CANALVENTA")
|
||||||
public class ConfRestricaoCanalVenta implements Serializable {
|
public class ConfRestricaoCanalVenta implements Serializable, Cloneable, Auditavel<ConfRestricaoCanalVenta>{
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
|
@ -87,8 +95,10 @@ public class ConfRestricaoCanalVenta implements Serializable {
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "RUTA_ID")
|
@JoinColumn(name = "RUTA_ID")
|
||||||
private Ruta ruta;
|
private Ruta ruta;
|
||||||
|
@AuditarLista(auditarEntidades = true, nome = "lsConfRestricaoExcecao")
|
||||||
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
private List<ConfRestricaoExcecao> lsConfRestricaoExcecao;
|
private List<ConfRestricaoExcecao> lsConfRestricaoExcecao;
|
||||||
|
@AuditarLista(auditarEntidades = true, nome = "lsConfRestricaoPtovta")
|
||||||
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
private List<ConfRestricaoPtovta> lsConfRestricaoPtovta;
|
private List<ConfRestricaoPtovta> lsConfRestricaoPtovta;
|
||||||
@Column(name = "INDEXIBECONSULTAVENDAWEB")
|
@Column(name = "INDEXIBECONSULTAVENDAWEB")
|
||||||
|
@ -106,20 +116,24 @@ public class ConfRestricaoCanalVenta implements Serializable {
|
||||||
private Date fecfinvigencia;
|
private Date fecfinvigencia;
|
||||||
@Column(name = "INDRESTRICAODINAMICA")
|
@Column(name = "INDRESTRICAODINAMICA")
|
||||||
private Boolean indRestricaoDinamica;
|
private Boolean indRestricaoDinamica;
|
||||||
|
@AuditarLista(auditarEntidades = true, nome = "lsConfRestricaoTramo")
|
||||||
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
@Where(clause="activo=1")
|
@Where(clause="activo=1")
|
||||||
private List<ConfRestricaoTramo> lsConfRestricaoTramo;
|
private List<ConfRestricaoTramo> lsConfRestricaoTramo;
|
||||||
|
@AuditarLista(auditarEntidades = true, nome = "lsConfRestricaoOrgaoConcedente")
|
||||||
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
private List<ConfRestricaoOrgaoConcedente> lsConfRestricaoOrgaoConcedente;
|
private List<ConfRestricaoOrgaoConcedente> lsConfRestricaoOrgaoConcedente;
|
||||||
|
@AuditarLista(auditarEntidades = true, nome = "lsConfRestricaoRutas")
|
||||||
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
private List<ConfRestricaoRutas> lsConfRestricaoRutas;
|
private List<ConfRestricaoRutas> lsConfRestricaoRutas;
|
||||||
|
@AuditarLista(auditarEntidades = true, nome = "lsConfRestricaoTramoOC")
|
||||||
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
@OneToMany(mappedBy = "confRestricaoCanalVenta", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||||
private List<ConfRestricaoTramoOC> lsConfRestricaoTramoOC;
|
private List<ConfRestricaoTramoOC> lsConfRestricaoTramoOC;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@NaoAuditar
|
||||||
|
private ConfRestricaoCanalVenta confRestricaoCanalVentaClone;
|
||||||
|
|
||||||
public ConfRestricaoCanalVenta() {
|
public ConfRestricaoCanalVenta() {
|
||||||
super();
|
super();
|
||||||
indexibeconsultavendaweb = false;
|
indexibeconsultavendaweb = false;
|
||||||
|
@ -298,20 +312,17 @@ public class ConfRestricaoCanalVenta implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ConfRestricaoExcecao> getLsConfRestricaoExcecao() {
|
public List<ConfRestricaoExcecao> getLsConfRestricaoExcecao() {
|
||||||
if (this.lsConfRestricaoExcecao != null) {
|
|
||||||
List<ConfRestricaoExcecao> lsTemp = new ArrayList<ConfRestricaoExcecao>();
|
|
||||||
|
|
||||||
for (ConfRestricaoExcecao cre : this.lsConfRestricaoExcecao) {
|
List<ConfRestricaoExcecao> tmp = new ArrayList<ConfRestricaoExcecao>();
|
||||||
if (cre.getActivo() == Boolean.TRUE) {
|
if (lsConfRestricaoExcecao != null) {
|
||||||
lsTemp.add(cre);
|
for (ConfRestricaoExcecao cm : this.lsConfRestricaoExcecao) {
|
||||||
|
if (cm.getActivo()) {
|
||||||
|
tmp.add(cm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lsConfRestricaoExcecao = lsTemp;
|
|
||||||
return lsConfRestricaoExcecao;
|
|
||||||
}
|
}
|
||||||
|
return tmp;
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLsConfRestricaoExcecao(List<ConfRestricaoExcecao> lsConfRestricaoExcecao) {
|
public void setLsConfRestricaoExcecao(List<ConfRestricaoExcecao> lsConfRestricaoExcecao) {
|
||||||
|
@ -320,19 +331,16 @@ public class ConfRestricaoCanalVenta implements Serializable {
|
||||||
|
|
||||||
|
|
||||||
public List<ConfRestricaoOrgaoConcedente> getLsConfRestricaoOrgaoConcedente() {
|
public List<ConfRestricaoOrgaoConcedente> getLsConfRestricaoOrgaoConcedente() {
|
||||||
if (this.lsConfRestricaoOrgaoConcedente != null) {
|
|
||||||
List<ConfRestricaoOrgaoConcedente> lsTemp = new ArrayList<ConfRestricaoOrgaoConcedente>();
|
|
||||||
|
|
||||||
|
List<ConfRestricaoOrgaoConcedente> lsTemp = new ArrayList<ConfRestricaoOrgaoConcedente>();
|
||||||
|
if (this.lsConfRestricaoOrgaoConcedente != null) {
|
||||||
for (ConfRestricaoOrgaoConcedente cre : this.lsConfRestricaoOrgaoConcedente) {
|
for (ConfRestricaoOrgaoConcedente cre : this.lsConfRestricaoOrgaoConcedente) {
|
||||||
if (cre.getActivo() == Boolean.TRUE) {
|
if (cre.getActivo() == Boolean.TRUE) {
|
||||||
lsTemp.add(cre);
|
lsTemp.add(cre);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return lsTemp;
|
||||||
lsConfRestricaoOrgaoConcedente = lsTemp;
|
|
||||||
return lsConfRestricaoOrgaoConcedente;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -428,12 +436,22 @@ public class ConfRestricaoCanalVenta implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ConfRestricaoTramo> getLsConfRestricaoTramo() {
|
public List<ConfRestricaoTramo> getLsConfRestricaoTramo() {
|
||||||
if(lsConfRestricaoTramo== null) {
|
|
||||||
lsConfRestricaoTramo = new ArrayList<ConfRestricaoTramo>();
|
if (this.lsConfRestricaoTramo != null) {
|
||||||
|
List<ConfRestricaoTramo> lsTemp = new ArrayList<ConfRestricaoTramo>();
|
||||||
|
for (ConfRestricaoTramo cre : this.lsConfRestricaoTramo) {
|
||||||
|
if (cre.getActivo() == Boolean.TRUE) {
|
||||||
|
lsTemp.add(cre);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
lsConfRestricaoTramo = lsTemp;
|
||||||
return lsConfRestricaoTramo;
|
return lsConfRestricaoTramo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void setLsConfRestricaoTramo(List<ConfRestricaoTramo> lsConfRestricaoTramo) {
|
public void setLsConfRestricaoTramo(List<ConfRestricaoTramo> lsConfRestricaoTramo) {
|
||||||
this.lsConfRestricaoTramo = lsConfRestricaoTramo;
|
this.lsConfRestricaoTramo = lsConfRestricaoTramo;
|
||||||
}
|
}
|
||||||
|
@ -506,4 +524,88 @@ public class ConfRestricaoCanalVenta implements Serializable {
|
||||||
|
|
||||||
return newConfRestricaoCanalVenda;
|
return newConfRestricaoCanalVenda;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
||||||
|
confRestricaoCanalVentaClone = new ConfRestricaoCanalVenta();
|
||||||
|
confRestricaoCanalVentaClone = (ConfRestricaoCanalVenta) this.clone();
|
||||||
|
|
||||||
|
|
||||||
|
if(this.getLsConfRestricaoTramo() != null) {
|
||||||
|
List<ConfRestricaoTramo> lsClones = new ArrayList<ConfRestricaoTramo>();
|
||||||
|
for (ConfRestricaoTramo confRestricaoTramo : this.getLsConfRestricaoTramo()) {
|
||||||
|
if(BooleanUtils.isTrue(confRestricaoTramo.getActivo())) {
|
||||||
|
confRestricaoTramo.clonar();
|
||||||
|
lsClones.add(confRestricaoTramo.getCloneObject());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
confRestricaoCanalVentaClone.setLsConfRestricaoTramo(lsClones);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(this.getLsConfRestricaoExcecao() != null) {
|
||||||
|
List<ConfRestricaoExcecao> lsClones = new ArrayList<ConfRestricaoExcecao>();
|
||||||
|
for (ConfRestricaoExcecao confRestricaoExcecao : this.getLsConfRestricaoExcecao()) {
|
||||||
|
if(BooleanUtils.isTrue(confRestricaoExcecao.getActivo())) {
|
||||||
|
confRestricaoExcecao.clonar();
|
||||||
|
lsClones.add(confRestricaoExcecao.getCloneObject());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
confRestricaoCanalVentaClone.setLsConfRestricaoExcecao(lsClones);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(this.getLsConfRestricaoOrgaoConcedente()!= null) {
|
||||||
|
List<ConfRestricaoOrgaoConcedente> lsClones = new ArrayList<ConfRestricaoOrgaoConcedente>();
|
||||||
|
for (ConfRestricaoOrgaoConcedente confRestricaoOrgaoConcedente : this.getLsConfRestricaoOrgaoConcedente()) {
|
||||||
|
if(BooleanUtils.isTrue(confRestricaoOrgaoConcedente.getActivo())) {
|
||||||
|
confRestricaoOrgaoConcedente.clonar();
|
||||||
|
lsClones.add(confRestricaoOrgaoConcedente.getCloneObject());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
confRestricaoCanalVentaClone.setLsConfRestricaoOrgaoConcedente(lsClones);
|
||||||
|
}
|
||||||
|
if(this.getLsConfRestricaoPtovta()!= null) {
|
||||||
|
List<ConfRestricaoPtovta> lsClones = new ArrayList<ConfRestricaoPtovta>();
|
||||||
|
for (ConfRestricaoPtovta confRestricaoPtovta : this.getLsConfRestricaoPtovta()) {
|
||||||
|
if(BooleanUtils.isTrue(confRestricaoPtovta.getActivo())) {
|
||||||
|
confRestricaoPtovta.clonar();
|
||||||
|
lsClones.add(confRestricaoPtovta.getCloneObject());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
confRestricaoCanalVentaClone.setLsConfRestricaoPtovta(lsClones);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(this.getLsConfRestricaoRutas()!= null) {
|
||||||
|
List<ConfRestricaoRutas> lsClones = new ArrayList<ConfRestricaoRutas>();
|
||||||
|
for (ConfRestricaoRutas confRestricaoRutas : this.getLsConfRestricaoRutas()) {
|
||||||
|
if(BooleanUtils.isTrue(confRestricaoRutas.getActivo())) {
|
||||||
|
confRestricaoRutas.clonar();
|
||||||
|
lsClones.add(confRestricaoRutas.getCloneObject());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
confRestricaoCanalVentaClone.setLsConfRestricaoRutas(lsClones);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(this.getLsConfRestricaoTramoOC()!= null) {
|
||||||
|
List<ConfRestricaoTramoOC> lsClones = new ArrayList<ConfRestricaoTramoOC>();
|
||||||
|
for (ConfRestricaoTramoOC confRestricaoTramoOC : this.getLsConfRestricaoTramoOC()) {
|
||||||
|
if(BooleanUtils.isTrue(confRestricaoTramoOC.getActivo())) {
|
||||||
|
confRestricaoTramoOC.clonar();
|
||||||
|
lsClones.add(confRestricaoTramoOC.getCloneObject());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
confRestricaoCanalVentaClone.setLsConfRestricaoTramoOC(lsClones);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConfRestricaoCanalVenta getCloneObject() throws CloneNotSupportedException {
|
||||||
|
return confRestricaoCanalVentaClone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextoInclusaoExclusao() {
|
||||||
|
return String.format("ID [%s]", getConfRestricaoCanalVentaId());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,20 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import org.hibernate.Hibernate;
|
||||||
|
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarEntidade;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@AuditarClasse(nome = "ConfRestricaoExcecao", tela = "auditarClasse.ConfRestricaoExcecao")
|
||||||
@SequenceGenerator(name = "CONF_RESTRICAO_EXCECAO_SEQ", sequenceName = "CONF_RESTRICAO_EXCECAO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CONF_RESTRICAO_EXCECAO_SEQ", sequenceName = "CONF_RESTRICAO_EXCECAO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CONF_RESTRICAO_EXCECAO")
|
@Table(name = "CONF_RESTRICAO_EXCECAO")
|
||||||
public class ConfRestricaoExcecao implements Serializable {
|
public class ConfRestricaoExcecao implements Serializable, Auditavel<ConfRestricaoExcecao> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
|
@ -40,9 +49,13 @@ public class ConfRestricaoExcecao implements Serializable {
|
||||||
private Date fecmodif;
|
private Date fecmodif;
|
||||||
@Column(name = "USUARIO_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer usuarioId;
|
private Integer usuarioId;
|
||||||
|
@NaoAuditar
|
||||||
@JoinColumn(name = "CONFRESTRICAOTRAMO_ID", referencedColumnName = "CONFRESTRICAOTRAMO_ID")
|
@JoinColumn(name = "CONFRESTRICAOTRAMO_ID", referencedColumnName = "CONFRESTRICAOTRAMO_ID")
|
||||||
@OneToOne
|
@OneToOne
|
||||||
private ConfRestricaoTramo confRestricaoTramo;
|
private ConfRestricaoTramo confRestricaoTramo;
|
||||||
|
@NaoAuditar
|
||||||
|
@Transient
|
||||||
|
private ConfRestricaoExcecao confRestricaoExcecaoClone;
|
||||||
|
|
||||||
|
|
||||||
public Integer getConfRestricaoExcecaoId() {
|
public Integer getConfRestricaoExcecaoId() {
|
||||||
|
@ -146,5 +159,23 @@ public class ConfRestricaoExcecao implements Serializable {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
||||||
|
confRestricaoExcecaoClone = new ConfRestricaoExcecao();
|
||||||
|
confRestricaoExcecaoClone = (ConfRestricaoExcecao) this.clone();
|
||||||
|
Hibernate.initialize(confRestricaoExcecaoClone.getConfRestricaoCanalVenta());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConfRestricaoExcecao getCloneObject() throws CloneNotSupportedException {
|
||||||
|
return confRestricaoExcecaoClone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextoInclusaoExclusao() {
|
||||||
|
return String.format("ID [%s]", getConfRestricaoTramo().getOrigem().getDescparada()+"-"+getConfRestricaoTramo().getDestino().getDescparada());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,19 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import org.hibernate.Hibernate;
|
||||||
|
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@AuditarClasse(nome = "ConfRestricaoOrgaoConcedente", tela = "auditarClasse.ConfRestricaoOrgaoConcedente")
|
||||||
@SequenceGenerator(name = "CONF_REST_ORGAOCONCEDENTE_SEQ", sequenceName = "CONF_REST_ORGAOCONCEDENTE_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CONF_REST_ORGAOCONCEDENTE_SEQ", sequenceName = "CONF_REST_ORGAOCONCEDENTE_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CONF_REST_ORGAOCONCEDENTE")
|
@Table(name = "CONF_REST_ORGAOCONCEDENTE")
|
||||||
public class ConfRestricaoOrgaoConcedente implements Serializable {
|
public class ConfRestricaoOrgaoConcedente implements Serializable, Auditavel<ConfRestricaoOrgaoConcedente>{
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
|
@ -47,6 +55,10 @@ public class ConfRestricaoOrgaoConcedente implements Serializable {
|
||||||
@Column(name = "USUARIO_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer usuarioId;
|
private Integer usuarioId;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@NaoAuditar
|
||||||
|
private ConfRestricaoOrgaoConcedente confRestricaoOrgaoConcedenteClone;
|
||||||
|
|
||||||
public ConfRestricaoOrgaoConcedente() {
|
public ConfRestricaoOrgaoConcedente() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
@ -129,4 +141,22 @@ public class ConfRestricaoOrgaoConcedente implements Serializable {
|
||||||
return "ConfRestricaoOrgaoConcedente [confRestOrgaoConcedenteId=" + confRestOrgaoConcedenteId + ", orgaoConcedente=" + orgaoConcedente + ", confRestricaoCanalVenta=" + confRestricaoCanalVenta + ", activo=" + activo + ", fecmodif=" + fecmodif + ", usuarioId=" + usuarioId + "]";
|
return "ConfRestricaoOrgaoConcedente [confRestOrgaoConcedenteId=" + confRestOrgaoConcedenteId + ", orgaoConcedente=" + orgaoConcedente + ", confRestricaoCanalVenta=" + confRestricaoCanalVenta + ", activo=" + activo + ", fecmodif=" + fecmodif + ", usuarioId=" + usuarioId + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
||||||
|
confRestricaoOrgaoConcedenteClone = new ConfRestricaoOrgaoConcedente();
|
||||||
|
confRestricaoOrgaoConcedenteClone = (ConfRestricaoOrgaoConcedente) this.clone();
|
||||||
|
Hibernate.initialize(confRestricaoOrgaoConcedenteClone.getConfRestricaoCanalVenta());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConfRestricaoOrgaoConcedente getCloneObject() throws CloneNotSupportedException {
|
||||||
|
return confRestricaoOrgaoConcedenteClone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextoInclusaoExclusao() {
|
||||||
|
return String.format("ID [%s]", getOrgaoConcedente().getDescOrgao());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,19 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import org.hibernate.Hibernate;
|
||||||
|
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@AuditarClasse(nome = "ConfRestricaoOrgaoConcedente", tela = "auditarClasse.ConfRestricaoPtovta")
|
||||||
@SequenceGenerator(name = "CONF_RESTRICAO_PTOVTA_SEQ", sequenceName = "CONF_RESTRICAO_PTOVTA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CONF_RESTRICAO_PTOVTA_SEQ", sequenceName = "CONF_RESTRICAO_PTOVTA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CONF_RESTRICAO_PTOVTA")
|
@Table(name = "CONF_RESTRICAO_PTOVTA")
|
||||||
public class ConfRestricaoPtovta implements Serializable {
|
public class ConfRestricaoPtovta implements Serializable, Auditavel<ConfRestricaoPtovta>{
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
|
@ -44,6 +52,9 @@ public class ConfRestricaoPtovta implements Serializable {
|
||||||
@JoinColumn(name = "CONFRESTRICAOTRAMO_ID", referencedColumnName = "CONFRESTRICAOTRAMO_ID")
|
@JoinColumn(name = "CONFRESTRICAOTRAMO_ID", referencedColumnName = "CONFRESTRICAOTRAMO_ID")
|
||||||
@OneToOne
|
@OneToOne
|
||||||
private ConfRestricaoTramo confRestricaoTramo;
|
private ConfRestricaoTramo confRestricaoTramo;
|
||||||
|
@Transient
|
||||||
|
@NaoAuditar
|
||||||
|
private ConfRestricaoPtovta confRestricaoPtovtaClone;
|
||||||
|
|
||||||
public Integer getConfRestricaoPtovtaId() {
|
public Integer getConfRestricaoPtovtaId() {
|
||||||
return confRestricaoPtovtaId;
|
return confRestricaoPtovtaId;
|
||||||
|
@ -153,5 +164,22 @@ public class ConfRestricaoPtovta implements Serializable {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ConfRestricaoPtovta [confRestricaoPtovtaId=" + confRestricaoPtovtaId + ", confRestricaoCanalVenta=" + confRestricaoCanalVenta + ", puntoVenta=" + puntoVenta + ", activo=" + activo + ", fecmodif=" + fecmodif + ", usuarioId=" + usuarioId + "]";
|
return "ConfRestricaoPtovta [confRestricaoPtovtaId=" + confRestricaoPtovtaId + ", confRestricaoCanalVenta=" + confRestricaoCanalVenta + ", puntoVenta=" + puntoVenta + ", activo=" + activo + ", fecmodif=" + fecmodif + ", usuarioId=" + usuarioId + "]";
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
||||||
|
confRestricaoPtovtaClone = new ConfRestricaoPtovta();
|
||||||
|
confRestricaoPtovtaClone = (ConfRestricaoPtovta) this.clone();
|
||||||
|
Hibernate.initialize(confRestricaoPtovtaClone.getConfRestricaoCanalVenta());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConfRestricaoPtovta getCloneObject() throws CloneNotSupportedException {
|
||||||
|
return confRestricaoPtovtaClone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextoInclusaoExclusao() {
|
||||||
|
return String.format("ID [%s]", getPuntoVenta().getNombpuntoventa());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -16,11 +16,19 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import org.hibernate.Hibernate;
|
||||||
|
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@AuditarClasse(nome = "ConfRestricaoRutas", tela = "auditarClasse.ConfRestricaoRutas")
|
||||||
@SequenceGenerator(name = "CONF_REST_RUTAS_SEQ", sequenceName = "CONF_REST_RUTAS_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CONF_REST_RUTAS_SEQ", sequenceName = "CONF_REST_RUTAS_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CONF_REST_RUTAS")
|
@Table(name = "CONF_REST_RUTAS")
|
||||||
public class ConfRestricaoRutas implements Serializable {
|
public class ConfRestricaoRutas implements Serializable, Auditavel<ConfRestricaoRutas>{
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
|
@ -47,6 +55,10 @@ public class ConfRestricaoRutas implements Serializable {
|
||||||
@Column(name = "USUARIO_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer usuarioId;
|
private Integer usuarioId;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@NaoAuditar
|
||||||
|
private ConfRestricaoRutas confRestricaoRutasClone;
|
||||||
|
|
||||||
public ConfRestricaoRutas() {
|
public ConfRestricaoRutas() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
@ -128,5 +140,21 @@ public class ConfRestricaoRutas implements Serializable {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ConfRestricaoRutas [confRestRutasId=" + confRestRutasId + ", ruta=" + ruta + ", confRestricaoCanalVenta=" + confRestricaoCanalVenta + ", activo=" + activo + ", fecmodif=" + fecmodif + ", usuarioId=" + usuarioId + "]";
|
return "ConfRestricaoRutas [confRestRutasId=" + confRestRutasId + ", ruta=" + ruta + ", confRestricaoCanalVenta=" + confRestricaoCanalVenta + ", activo=" + activo + ", fecmodif=" + fecmodif + ", usuarioId=" + usuarioId + "]";
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
||||||
|
confRestricaoRutasClone = new ConfRestricaoRutas();
|
||||||
|
confRestricaoRutasClone = (ConfRestricaoRutas) this.clone();
|
||||||
|
Hibernate.initialize(confRestricaoRutasClone.getConfRestricaoCanalVenta());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public ConfRestricaoRutas getCloneObject() throws CloneNotSupportedException {
|
||||||
|
return confRestricaoRutasClone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextoInclusaoExclusao() {
|
||||||
|
return String.format("ID [%s]", getRuta().getDescruta());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -16,11 +16,20 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import org.hibernate.Hibernate;
|
||||||
|
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarEntidade;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@AuditarClasse(nome = "ConfRestricaoTramo", tela = "auditarClasse.ConfRestricaoTramo")
|
||||||
@SequenceGenerator(name = "CONF_RESTRICAO_TRAMO_SEQ", sequenceName = "CONF_RESTRICAO_TRAMO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CONF_RESTRICAO_TRAMO_SEQ", sequenceName = "CONF_RESTRICAO_TRAMO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CONF_RESTRICAO_TRAMO")
|
@Table(name = "CONF_RESTRICAO_TRAMO")
|
||||||
public class ConfRestricaoTramo implements Serializable {
|
public class ConfRestricaoTramo implements Serializable, Auditavel<ConfRestricaoTramo> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -33,6 +42,7 @@ public class ConfRestricaoTramo implements Serializable {
|
||||||
@JoinColumn(name = "CONFRESTRICAOCANALVENTA_ID", referencedColumnName = "CONFRESTRICAOCANALVENTA_ID")
|
@JoinColumn(name = "CONFRESTRICAOCANALVENTA_ID", referencedColumnName = "CONFRESTRICAOCANALVENTA_ID")
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private ConfRestricaoCanalVenta confRestricaoCanalVenta;
|
private ConfRestricaoCanalVenta confRestricaoCanalVenta;
|
||||||
|
@AuditarEntidade
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "TIPOPTOVTA_ID")
|
@JoinColumn(name = "TIPOPTOVTA_ID")
|
||||||
private TipoPuntoVenta tipoPuntoVenta;
|
private TipoPuntoVenta tipoPuntoVenta;
|
||||||
|
@ -66,6 +76,9 @@ public class ConfRestricaoTramo implements Serializable {
|
||||||
private Date fecmodif;
|
private Date fecmodif;
|
||||||
@Column(name = "USUARIO_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer usuarioId;
|
private Integer usuarioId;
|
||||||
|
@Transient
|
||||||
|
@NaoAuditar
|
||||||
|
private ConfRestricaoTramo confRestricaoTramoClone;
|
||||||
|
|
||||||
public Long getConfRestricaoTramoId() {
|
public Long getConfRestricaoTramoId() {
|
||||||
return confRestricaoTramoId;
|
return confRestricaoTramoId;
|
||||||
|
@ -271,4 +284,23 @@ public class ConfRestricaoTramo implements Serializable {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
||||||
|
confRestricaoTramoClone = new ConfRestricaoTramo();
|
||||||
|
confRestricaoTramoClone = (ConfRestricaoTramo) this.clone();
|
||||||
|
Hibernate.initialize(confRestricaoTramoClone.getConfRestricaoCanalVenta());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConfRestricaoTramo getCloneObject() throws CloneNotSupportedException {
|
||||||
|
return confRestricaoTramoClone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextoInclusaoExclusao() {
|
||||||
|
return String.format("ID [%s]", getOrigem().getDescparada()+"-"+getDestino().getDescparada());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,19 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import org.hibernate.Hibernate;
|
||||||
|
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@AuditarClasse(nome = "ConfRestricaoTramoOC", tela = "auditarClasse.ConfRestricaoTramoOC")
|
||||||
@SequenceGenerator(name = "CONF_REST_TRAMOOC_SEQ", sequenceName = "CONF_REST_TRAMOOC_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CONF_REST_TRAMOOC_SEQ", sequenceName = "CONF_REST_TRAMOOC_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CONF_REST_TRAMOOC")
|
@Table(name = "CONF_REST_TRAMOOC")
|
||||||
public class ConfRestricaoTramoOC implements Serializable {
|
public class ConfRestricaoTramoOC implements Serializable, Auditavel<ConfRestricaoTramoOC> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
|
@ -51,6 +59,10 @@ public class ConfRestricaoTramoOC implements Serializable {
|
||||||
@Column(name = "USUARIO_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer usuarioId;
|
private Integer usuarioId;
|
||||||
|
|
||||||
|
@Transient
|
||||||
|
@NaoAuditar
|
||||||
|
private ConfRestricaoTramoOC confRestricaoTramoOCClone;
|
||||||
|
|
||||||
public ConfRestricaoTramoOC() {
|
public ConfRestricaoTramoOC() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
@ -146,4 +158,22 @@ public class ConfRestricaoTramoOC implements Serializable {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ConfRestricaoTramoOC [confRestTramoOCId=" + confRestTramoOCId + ", origem=" + origem + ", destino=" + destino + ", confRestricaoCanalVenta=" + confRestricaoCanalVenta + ", activo=" + activo + ", fecmodif=" + fecmodif + ", usuarioId=" + usuarioId + "]";
|
return "ConfRestricaoTramoOC [confRestTramoOCId=" + confRestTramoOCId + ", origem=" + origem + ", destino=" + destino + ", confRestricaoCanalVenta=" + confRestricaoCanalVenta + ", activo=" + activo + ", fecmodif=" + fecmodif + ", usuarioId=" + usuarioId + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
||||||
|
confRestricaoTramoOCClone = new ConfRestricaoTramoOC();
|
||||||
|
confRestricaoTramoOCClone = (ConfRestricaoTramoOC) this.clone();
|
||||||
|
Hibernate.initialize(confRestricaoTramoOCClone.getConfRestricaoCanalVenta());
|
||||||
|
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public ConfRestricaoTramoOC getCloneObject() throws CloneNotSupportedException {
|
||||||
|
return confRestricaoTramoOCClone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextoInclusaoExclusao() {
|
||||||
|
return String.format("ID [%s]", getOrigem().getDescparada()+"-"+getDestino().getDescparada());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,11 +15,17 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@AuditarClasse(nome = "ConfRestricaoVendaWeb", tela = "auditarClasse.ConfRestricaoVendaWeb")
|
||||||
@SequenceGenerator(name = "CONF_RESTRICAO_VENDAWEB_SEQ", sequenceName = "CONF_RESTRICAO_VENDAWEB_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "CONF_RESTRICAO_VENDAWEB_SEQ", sequenceName = "CONF_RESTRICAO_VENDAWEB_SEQ", allocationSize = 1)
|
||||||
@Table(name = "CONF_RESTRICAO_VENDAWEB")
|
@Table(name = "CONF_RESTRICAO_VENDAWEB")
|
||||||
public class ConfRestricaoVendaWeb implements Serializable {
|
public class ConfRestricaoVendaWeb implements Serializable, Auditavel<ConfRestricaoVendaWeb>{
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
|
@ -40,6 +46,9 @@ public class ConfRestricaoVendaWeb implements Serializable {
|
||||||
private Date fecmodif;
|
private Date fecmodif;
|
||||||
@Column(name = "USUARIO_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer usuarioId;
|
private Integer usuarioId;
|
||||||
|
@NaoAuditar
|
||||||
|
@Transient
|
||||||
|
private ConfRestricaoVendaWeb confRestricaoVendaWebClone;
|
||||||
|
|
||||||
public Integer getConfRestricaoVendaWebId() {
|
public Integer getConfRestricaoVendaWebId() {
|
||||||
return confRestricaoVendaWebId;
|
return confRestricaoVendaWebId;
|
||||||
|
@ -77,4 +86,23 @@ public class ConfRestricaoVendaWeb implements Serializable {
|
||||||
public void setUsuarioId(Integer usuarioId) {
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
this.usuarioId = usuarioId;
|
this.usuarioId = usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
||||||
|
confRestricaoVendaWebClone = new ConfRestricaoVendaWeb();
|
||||||
|
confRestricaoVendaWebClone = (ConfRestricaoVendaWeb) this.clone();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConfRestricaoVendaWeb getCloneObject() throws CloneNotSupportedException {
|
||||||
|
return confRestricaoVendaWebClone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTextoInclusaoExclusao() {
|
||||||
|
return String.format("ID [%s]", "Empresa: "+getEmpresa().getNombempresa()+"- Valor: "+getValor());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "ESQUEMA_CORRIDA_SEQ", sequenceName = "ESQUEMA_CORRIDA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "ESQUEMA_CORRIDA_SEQ", sequenceName = "ESQUEMA_CORRIDA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "ESQUEMA_CORRIDA")
|
@Table(name = "ESQUEMA_CORRIDA")
|
||||||
@AuditarClasse(nome = "ESQUEMA_CORRIDA", tela = "Configuração de Serviços")
|
@AuditarClasse(nome = "ESQUEMA_CORRIDA", tela = "auditarClasse.EsquemaCorrida")
|
||||||
public class EsquemaCorrida implements Serializable, Auditavel<EsquemaCorrida> {
|
public class EsquemaCorrida implements Serializable, Auditavel<EsquemaCorrida> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -37,7 +37,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "Forma Pagamento", tela = "Forma Pagamento")
|
@AuditarClasse(nome = "Forma Pagamento", tela = "auditarClasse.FormaPago")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "FORMA_PAGO_SEQ", sequenceName = "FORMA_PAGO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "FORMA_PAGO_SEQ", sequenceName = "FORMA_PAGO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "FORMA_PAGO")
|
@Table(name = "FORMA_PAGO")
|
||||||
|
|
|
@ -33,7 +33,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "FormaPagoDet", tela = "Alteração de Forma Pago Detalhe Ponto de Venda")
|
@AuditarClasse(nome = "FormaPagoDet", tela = "auditarClasse.FormaPagoDet")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "FORMA_PAGO_DET_SEQ", sequenceName = "FORMA_PAGO_DET_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "FORMA_PAGO_DET_SEQ", sequenceName = "FORMA_PAGO_DET_SEQ", allocationSize = 1)
|
||||||
@Table(name = "FORMA_PAGO_DET")
|
@Table(name = "FORMA_PAGO_DET")
|
||||||
|
|
|
@ -23,7 +23,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "HistoricoFormaPagoPuntoVenta", tela = "Alteracao Forma Pago Ponto de Venda/Historico")
|
@AuditarClasse(nome = "HistoricoFormaPagoPuntoVenta", tela = "auditarClasse.HistoricoFormaPagoPuntoVenta")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "HIST_FORMAPAGOPUNTOVENTA_SEQ", sequenceName = "HIST_FORMAPAGOPUNTOVENTA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "HIST_FORMAPAGOPUNTOVENTA_SEQ", sequenceName = "HIST_FORMAPAGOPUNTOVENTA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "HIST_FORMAPAGO_PUNTOVENTA")
|
@Table(name = "HIST_FORMAPAGO_PUNTOVENTA")
|
||||||
|
|
|
@ -23,7 +23,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "HistoricoPuntoVenta", tela = "Alteração Ponto de Venda/Historico")
|
@AuditarClasse(nome = "HistoricoPuntoVenta", tela = "auditarClasse.HistoricoPuntoVenta")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "HIST_PUNTOVENTA_SEQ", sequenceName = "HIST_PUNTOVENTA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "HIST_PUNTOVENTA_SEQ", sequenceName = "HIST_PUNTOVENTA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "HIST_PUNTOVENTA")
|
@Table(name = "HIST_PUNTOVENTA")
|
||||||
|
|
|
@ -24,7 +24,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "ORGAO_CANCELACION", tela = "Alteração de Orgao Cancelamento")
|
@AuditarClasse(nome = "ORGAO_CANCELACION", tela = "auditarClasse.OrgaoCancelacion")
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "ORGAO_CANCELACION")
|
@Table(name = "ORGAO_CANCELACION")
|
||||||
@SequenceGenerator(name = "ORGAO_CANCELACION_SEQ", sequenceName = "ORGAO_CANCELACION_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "ORGAO_CANCELACION_SEQ", sequenceName = "ORGAO_CANCELACION_SEQ", allocationSize = 1)
|
||||||
|
|
|
@ -32,7 +32,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarLista;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "OrgaoConcedente", tela = "Alteração de Orgao Concedente")
|
@AuditarClasse(nome = "OrgaoConcedente", tela = "auditarClasse.OrgaoConcedente")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "ORGAO_CONCEDENTE_SEQ", sequenceName = "ORGAO_CONCEDENTE_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "ORGAO_CONCEDENTE_SEQ", sequenceName = "ORGAO_CONCEDENTE_SEQ", allocationSize = 1)
|
||||||
@Table(name = "ORGAO_CONCEDENTE")
|
@Table(name = "ORGAO_CONCEDENTE")
|
||||||
|
@ -88,12 +88,12 @@ public class OrgaoConcedente implements Serializable, Auditavel<OrgaoConcedente>
|
||||||
private Boolean indValDocObligatorioMonitrip;
|
private Boolean indValDocObligatorioMonitrip;
|
||||||
@Column(name = "INDVALDOCOBLIGATORIOEMBARCADA")
|
@Column(name = "INDVALDOCOBLIGATORIOEMBARCADA")
|
||||||
private Boolean indValDocObligatorioEmbarcada;
|
private Boolean indValDocObligatorioEmbarcada;
|
||||||
@Column(name = "TAXACONVENIENCIAPORC")
|
// @Column(name = "TAXACONVENIENCIAPORC")
|
||||||
private BigDecimal taxaConvenienciaPorc;
|
// private BigDecimal taxaConvenienciaPorc;
|
||||||
@Column(name = "MAXTAXACONVENIENCIAPORTARIFA")
|
// @Column(name = "MAXTAXACONVENIENCIAPORTARIFA")
|
||||||
private BigDecimal maximoTaxaConvenienciaPorTarifa;
|
// private BigDecimal maximoTaxaConvenienciaPorTarifa;
|
||||||
@Column(name = "MENSAGEMRECIBOTXCONVENIENCIA")
|
// @Column(name = "MENSAGEMRECIBOTXCONVENIENCIA")
|
||||||
private String mensagemReciboTaxaDeConveniencia;
|
// private String mensagemReciboTaxaDeConveniencia;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -320,21 +320,21 @@ public class OrgaoConcedente implements Serializable, Auditavel<OrgaoConcedente>
|
||||||
this.indValDocObligatorioEmbarcada = indValDocObligatorioEmbarcada;
|
this.indValDocObligatorioEmbarcada = indValDocObligatorioEmbarcada;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getTaxaConvenienciaPorc() {
|
// public BigDecimal getTaxaConvenienciaPorc() {
|
||||||
return taxaConvenienciaPorc;
|
// return taxaConvenienciaPorc;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public void setTaxaConvenienciaPorc(BigDecimal taxaConvenienciaPorc) {
|
// public void setTaxaConvenienciaPorc(BigDecimal taxaConvenienciaPorc) {
|
||||||
this.taxaConvenienciaPorc = taxaConvenienciaPorc;
|
// this.taxaConvenienciaPorc = taxaConvenienciaPorc;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public BigDecimal getMaximoTaxaConvenienciaPorTarifa() {
|
// public BigDecimal getMaximoTaxaConvenienciaPorTarifa() {
|
||||||
return maximoTaxaConvenienciaPorTarifa;
|
// return maximoTaxaConvenienciaPorTarifa;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public void setMaximoTaxaConvenienciaPorTarifa(BigDecimal maximoTaxaConvenienciaPorTarifa) {
|
// public void setMaximoTaxaConvenienciaPorTarifa(BigDecimal maximoTaxaConvenienciaPorTarifa) {
|
||||||
this.maximoTaxaConvenienciaPorTarifa = maximoTaxaConvenienciaPorTarifa;
|
// this.maximoTaxaConvenienciaPorTarifa = maximoTaxaConvenienciaPorTarifa;
|
||||||
}
|
// }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
|
@ -377,13 +377,13 @@ public class OrgaoConcedente implements Serializable, Auditavel<OrgaoConcedente>
|
||||||
this.taxaConvenienciaSVI = taxaConvenienciaSVI;
|
this.taxaConvenienciaSVI = taxaConvenienciaSVI;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMensagemReciboTaxaDeConveniencia() {
|
// public String getMensagemReciboTaxaDeConveniencia() {
|
||||||
return mensagemReciboTaxaDeConveniencia;
|
// return mensagemReciboTaxaDeConveniencia;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public void setMensagemReciboTaxaDeConveniencia(String mensagemReciboTaxaDeConveniencia) {
|
// public void setMensagemReciboTaxaDeConveniencia(String mensagemReciboTaxaDeConveniencia) {
|
||||||
this.mensagemReciboTaxaDeConveniencia = mensagemReciboTaxaDeConveniencia;
|
// this.mensagemReciboTaxaDeConveniencia = mensagemReciboTaxaDeConveniencia;
|
||||||
}
|
// }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void clonar() throws CloneNotSupportedException {
|
public void clonar() throws CloneNotSupportedException {
|
||||||
|
|
|
@ -22,7 +22,7 @@ import org.hibernate.Hibernate;
|
||||||
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
@AuditarClasse(nome = "OrgaoEmpParam", tela = "Alteração de Orgao Empresa Parametro")
|
@AuditarClasse(nome = "OrgaoEmpParam", tela = "auditarClasse.OrgaoEmpParam")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "ORGAO_EMP_PARAM_SEQ", sequenceName = "ORGAO_EMP_PARAM_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "ORGAO_EMP_PARAM_SEQ", sequenceName = "ORGAO_EMP_PARAM_SEQ", allocationSize = 1)
|
||||||
@Table(name = "ORGAO_EMP_PARAM")
|
@Table(name = "ORGAO_EMP_PARAM")
|
||||||
|
|
|
@ -31,7 +31,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Desenvolvimento
|
* @author Desenvolvimento
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "ParamRecoleccion", tela = "Alteração de Param Coleccion Pnoto de Venda")
|
@AuditarClasse(nome = "ParamRecoleccion", tela = "auditarClasse.ParamRecoleccion")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PARAM_RECOLECCION_SEQ", sequenceName = "PARAM_RECOLECCION_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PARAM_RECOLECCION_SEQ", sequenceName = "PARAM_RECOLECCION_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PARAM_RECOLECCION")
|
@Table(name = "PARAM_RECOLECCION")
|
||||||
|
|
|
@ -32,7 +32,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author RJ
|
* @author RJ
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtoVtaCheckin", tela = "Alteração de Localidades/Permitidas/Checkin Ponto de Venda")
|
@AuditarClasse(nome = "PtoVtaCheckin", tela = "auditarClasse.PtoVtaCheckin")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_CHECKIN_SEQ", sequenceName = "PTOVTA_CHECKIN_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_CHECKIN_SEQ", sequenceName = "PTOVTA_CHECKIN_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_CHECKIN")
|
@Table(name = "PTOVTA_CHECKIN")
|
||||||
|
|
|
@ -31,7 +31,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author RJ
|
* @author RJ
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtoVtaSeguro", tela = "Alteração de Seguro no Ponto de Venda")
|
@AuditarClasse(nome = "PtoVtaSeguro", tela = "auditarClasse.PtoVtaSeguro")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_SEGURO_SEQ", sequenceName = "PTOVTA_SEGURO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_SEGURO_SEQ", sequenceName = "PTOVTA_SEGURO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_SEGURO")
|
@Table(name = "PTOVTA_SEGURO")
|
||||||
|
|
|
@ -29,7 +29,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Desenvolvimento
|
* @author Desenvolvimento
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtoVtaUsuarioBancario", tela = "Alteração Ponto de Venda/Usuario Bancario")
|
@AuditarClasse(nome = "PtoVtaUsuarioBancario", tela = "auditarClasse.PtoVtaUsuarioBancario")
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PTOVTA_USUARIO_BANCARIO")
|
@Table(name = "PTOVTA_USUARIO_BANCARIO")
|
||||||
public class PtoVtaUsuarioBancario implements Serializable, Auditavel<PtoVtaUsuarioBancario> {
|
public class PtoVtaUsuarioBancario implements Serializable, Auditavel<PtoVtaUsuarioBancario> {
|
||||||
|
|
|
@ -32,7 +32,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Rafael
|
* @author Rafael
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtovtaAntecipacomissao", tela = "Alteração Ponto de Venda/Antecipação Comissão")
|
@AuditarClasse(nome = "PtovtaAntecipacomissao", tela = "auditarClasse.PtovtaAntecipacomissao")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_ANTECIPACOMISSAO_SEQ", sequenceName = "PTOVTA_ANTECIPACOMISSAO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_ANTECIPACOMISSAO_SEQ", sequenceName = "PTOVTA_ANTECIPACOMISSAO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_ANTECIPACOMISSAO")
|
@Table(name = "PTOVTA_ANTECIPACOMISSAO")
|
||||||
|
|
|
@ -30,7 +30,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
/**
|
/**
|
||||||
* @author Wilian
|
* @author Wilian
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtovtaAntifraude", tela = "Alteração Ponto de Venda/Antifraude")
|
@AuditarClasse(nome = "PtovtaAntifraude", tela = "auditarClasse.PtovtaAntifraude")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_ANTIFRAUDE_SEQ", sequenceName = "PTOVTA_ANTIFRAUDE_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_ANTIFRAUDE_SEQ", sequenceName = "PTOVTA_ANTIFRAUDE_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_ANTIFRAUDE")
|
@Table(name = "PTOVTA_ANTIFRAUDE")
|
||||||
|
|
|
@ -23,7 +23,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "PtovtaCatInd", tela = "Alteração de Categoria Ponto de Venda")
|
@AuditarClasse(nome = "PtovtaCatInd", tela = "auditarClasse.PtovtaCatInd")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_CAT_IND_SEQ", sequenceName = "PTOVTA_CAT_IND_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_CAT_IND_SEQ", sequenceName = "PTOVTA_CAT_IND_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_CAT_IND")
|
@Table(name = "PTOVTA_CAT_IND")
|
||||||
|
|
|
@ -37,7 +37,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Rafael
|
* @author Rafael
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtovtaComissao", tela = "Alteração Ponto Veda/Comissão")
|
@AuditarClasse(nome = "PtovtaComissao", tela = "auditarClasse.PtovtaComissao")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_COMISSAO_SEQ", sequenceName = "PTOVTA_COMISSAO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_COMISSAO_SEQ", sequenceName = "PTOVTA_COMISSAO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_COMISSAO")
|
@Table(name = "PTOVTA_COMISSAO")
|
||||||
|
|
|
@ -36,7 +36,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Desenvolvimento
|
* @author Desenvolvimento
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtovtaEmpresa", tela = "Alteração Ponto de Venda/de Empresas/Venda")
|
@AuditarClasse(nome = "PtovtaEmpresa", tela = "auditarClasse.PtovtaEmpresa")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_EMPRESA_SEQ", sequenceName = "PTOVTA_EMPRESA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_EMPRESA_SEQ", sequenceName = "PTOVTA_EMPRESA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_EMPRESA")
|
@Table(name = "PTOVTA_EMPRESA")
|
||||||
|
|
|
@ -23,7 +23,7 @@ import br.com.rjconsultores.auditador.annotations.AuditarClasse;
|
||||||
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
|
||||||
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
|
|
||||||
@AuditarClasse(nome = "PtovtaEmpresaBloqueada", tela = "Alteração Ponto de Venda/Empresa Bloqueada ")
|
@AuditarClasse(nome = "PtovtaEmpresaBloqueada", tela = "auditarClasse.PtovtaEmpresaBloqueada")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_EMP_BLOQUEADA_SEQ", sequenceName = "PTOVTA_EMP_BLOQUEADA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_EMP_BLOQUEADA_SEQ", sequenceName = "PTOVTA_EMP_BLOQUEADA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_EMP_BLOQUEADA")
|
@Table(name = "PTOVTA_EMP_BLOQUEADA")
|
||||||
|
|
|
@ -31,7 +31,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Rafael
|
* @author Rafael
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtoVtaUsuarioBancario", tela = "Alteração Estoque Ponto de Venda")
|
@AuditarClasse(nome = "PtoVtaUsuarioBancario", tela = "auditarClasse.PtovtaEstoque")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_ESTOQUE_SEQ ", sequenceName = "PTOVTA_ESTOQUE_SEQ ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_ESTOQUE_SEQ ", sequenceName = "PTOVTA_ESTOQUE_SEQ ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_ESTOQUE")
|
@Table(name = "PTOVTA_ESTOQUE")
|
||||||
|
|
|
@ -26,7 +26,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
/**
|
/**
|
||||||
* @author Valdevir
|
* @author Valdevir
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtovtaExcecaoMultaCanc", tela = "Alteração Ponto de Venda/Excecao Multa Canc")
|
@AuditarClasse(nome = "PtovtaExcecaoMultaCanc", tela = "auditarClasse.PtovtaExcecaoMultaCanc")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_EXCECAO_MULTA_CANC_SEQ", sequenceName = "PTOVTA_EXCECAO_MULTA_CANC_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_EXCECAO_MULTA_CANC_SEQ", sequenceName = "PTOVTA_EXCECAO_MULTA_CANC_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_EXCECAO_MULTA_CANC")
|
@Table(name = "PTOVTA_EXCECAO_MULTA_CANC")
|
||||||
|
|
|
@ -31,7 +31,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Rafael
|
* @author Rafael
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtovtaHorario", tela = "Alteração Ponto Venda/Horario")
|
@AuditarClasse(nome = "PtovtaHorario", tela = "auditarClasse.PtovtaHorario")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PTOVTA_HORARIO_SEQ", sequenceName = "PTOVTA_HORARIO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_HORARIO_SEQ", sequenceName = "PTOVTA_HORARIO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "PTOVTA_HORARIO")
|
@Table(name = "PTOVTA_HORARIO")
|
||||||
|
|
|
@ -36,7 +36,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Rafael
|
* @author Rafael
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "PtovtaTitular", tela = "Alteração Ponto Veda/Titular/Foto")
|
@AuditarClasse(nome = "PtovtaTitular", tela = "auditarClasse.PtovtaTitular")
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "PTOVTA_TITULAR")
|
@Table(name = "PTOVTA_TITULAR")
|
||||||
@SequenceGenerator(name = "PTOVTA_TITULAR_SEQ ", sequenceName = "PTOVTA_TITULAR_SEQ ", allocationSize = 1)
|
@SequenceGenerator(name = "PTOVTA_TITULAR_SEQ ", sequenceName = "PTOVTA_TITULAR_SEQ ", allocationSize = 1)
|
||||||
|
|
|
@ -52,7 +52,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "PUNTO_VENTA_SEQ", sequenceName = "PUNTO_VENTA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "PUNTO_VENTA_SEQ", sequenceName = "PUNTO_VENTA_SEQ", allocationSize = 1)
|
||||||
@AuditarClasse(nome = "PuntoVenta", tela = "Alteracao de Ponto de Venda")
|
@AuditarClasse(nome = "PuntoVenta", tela = "auditarClasse.PuntoVenta")
|
||||||
@Table(name = "PUNTO_VENTA")
|
@Table(name = "PUNTO_VENTA")
|
||||||
public class PuntoVenta implements Serializable, Auditavel<PuntoVenta> {
|
public class PuntoVenta implements Serializable, Auditavel<PuntoVenta> {
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ import javax.persistence.SequenceGenerator;
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@AuditarClasse(nome = "ReservacionPuntoVenta", tela = "Alteração de Reserva Categoria")
|
@AuditarClasse(nome = "ReservacionPuntoVenta", tela = "auditarClasse.ReservacionCategoria")
|
||||||
@SequenceGenerator(name = "RESERVACION_CATEGORIA_SEQ", sequenceName = "RESERVACION_CATEGORIA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "RESERVACION_CATEGORIA_SEQ", sequenceName = "RESERVACION_CATEGORIA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "RESERVACION_CATEGORIA")
|
@Table(name = "RESERVACION_CATEGORIA")
|
||||||
public class ReservacionCategoria implements Serializable, Auditavel<ReservacionCategoria> {
|
public class ReservacionCategoria implements Serializable, Auditavel<ReservacionCategoria> {
|
||||||
|
|
|
@ -32,7 +32,7 @@ import javax.persistence.SequenceGenerator;
|
||||||
* @author Rafius
|
* @author Rafius
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@AuditarClasse(nome = "ReservacionPuntoVenta", tela = "Alteração de Reserva Punto Venta")
|
@AuditarClasse(nome = "ReservacionPuntoVenta", tela = "auditarClasse.ReservacionPuntoVenta")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "RESERVACION_PUNTOVENTA_SEQ", sequenceName = "RESERVACION_PUNTOVENTA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "RESERVACION_PUNTOVENTA_SEQ", sequenceName = "RESERVACION_PUNTOVENTA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "RESERVACION_PUNTOVENTA")
|
@Table(name = "RESERVACION_PUNTOVENTA")
|
||||||
|
|
|
@ -40,7 +40,7 @@ import br.com.rjconsultores.auditador.interfaces.AuditavelTelaAlternativa;
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "TARIFA_SEQ", sequenceName = "TARIFA_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "TARIFA_SEQ", sequenceName = "TARIFA_SEQ", allocationSize = 1)
|
||||||
@Table(name = "TARIFA")
|
@Table(name = "TARIFA")
|
||||||
@AuditarClasse(nome = "TARIFA", tela = "Alteração de Preço")
|
@AuditarClasse(nome = "TARIFA", tela = "auditarClasse.Tarifa")
|
||||||
public class Tarifa implements Serializable, Auditavel<Tarifa>, AuditavelTelaAlternativa {
|
public class Tarifa implements Serializable, Auditavel<Tarifa>, AuditavelTelaAlternativa {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -27,7 +27,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "TARIFA_OFICIAL_SEQ", sequenceName = "TARIFA_OFICIAL_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "TARIFA_OFICIAL_SEQ", sequenceName = "TARIFA_OFICIAL_SEQ", allocationSize = 1)
|
||||||
@Table(name = "TARIFA_OFICIAL")
|
@Table(name = "TARIFA_OFICIAL")
|
||||||
@AuditarClasse(nome = "TARIFA", tela = "Alteração de Preço / Tarifa Oficial")
|
@AuditarClasse(nome = "TARIFA", tela = "auditarClasse.TarifaOficial")
|
||||||
public class TarifaOficial implements Serializable, Auditavel<TarifaOficial> {
|
public class TarifaOficial implements Serializable, Auditavel<TarifaOficial> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -51,7 +51,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author rodrigo
|
* @author rodrigo
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "USUARIO", tela = "Alteração de Usuário")
|
@AuditarClasse(nome = "USUARIO", tela = "auditarClasse.Usuario")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "USUARIO_SEQ", sequenceName = "USUARIO_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "USUARIO_SEQ", sequenceName = "USUARIO_SEQ", allocationSize = 1)
|
||||||
@Table(name = "USUARIO")
|
@Table(name = "USUARIO")
|
||||||
|
|
|
@ -30,7 +30,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
|
||||||
*
|
*
|
||||||
* @author Rafius
|
* @author Rafius
|
||||||
*/
|
*/
|
||||||
@AuditarClasse(nome = "USUARIO_PERFIL", tela = "Alteração de Usuário")
|
@AuditarClasse(nome = "USUARIO_PERFIL", tela = "auditarClasse.UsuarioPerfil")
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(name = "USUARIO_PERFIL_SEQ", sequenceName = "USUARIO_PERFIL_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "USUARIO_PERFIL_SEQ", sequenceName = "USUARIO_PERFIL_SEQ", allocationSize = 1)
|
||||||
@Table(name = "USUARIO_PERFIL")
|
@Table(name = "USUARIO_PERFIL")
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
package com.rjconsultores.ventaboletos.service;
|
package com.rjconsultores.ventaboletos.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoTramo;
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoTramo;
|
||||||
|
|
||||||
public interface ConfRestricaoTramoService extends GenericService<ConfRestricaoTramo, Long> {
|
public interface ConfRestricaoTramoService extends GenericService<ConfRestricaoTramo, Long> {
|
||||||
|
|
||||||
|
void actualizacionAuditagem(List<ConfRestricaoTramo> lsConfRestricaoTramo);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,8 @@ import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -13,12 +15,17 @@ import com.rjconsultores.ventaboletos.dao.ConfRestricaoCanalVentaDAO;
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta;
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta;
|
||||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||||
import com.rjconsultores.ventaboletos.service.ConfRestricaoCanalVentaService;
|
import com.rjconsultores.ventaboletos.service.ConfRestricaoCanalVentaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
|
||||||
@Service("confRestricaoCanalVentaService")
|
@Service("confRestricaoCanalVentaService")
|
||||||
public class ConfRestricaoCanalVentaServiceImpl implements ConfRestricaoCanalVentaService {
|
public class ConfRestricaoCanalVentaServiceImpl implements ConfRestricaoCanalVentaService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ConfRestricaoCanalVentaDAO confRestricaoCanalVentaDAO;
|
private ConfRestricaoCanalVentaDAO confRestricaoCanalVentaDAO;
|
||||||
|
@Autowired
|
||||||
|
private LogAuditoriaService logAuditoriaService;
|
||||||
|
private static Logger log = LoggerFactory.getLogger(ConfRestricaoCanalVentaServiceImpl.class);
|
||||||
|
|
||||||
|
|
||||||
public ConfRestricaoCanalVenta obtenerID(Long id) {
|
public ConfRestricaoCanalVenta obtenerID(Long id) {
|
||||||
|
@ -33,10 +40,22 @@ public class ConfRestricaoCanalVentaServiceImpl implements ConfRestricaoCanalVen
|
||||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||||
entidad.setActivo(Boolean.TRUE);
|
entidad.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
|
ConfRestricaoCanalVenta originalClone = null;
|
||||||
|
try {
|
||||||
|
originalClone = entidad.getCloneObject();
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("Erro ao clonar CategoriaCtrl: ",e);
|
||||||
|
}
|
||||||
|
|
||||||
if (entidad.getConfRestricaoCanalVentaId() == null){
|
if (entidad.getConfRestricaoCanalVentaId() == null){
|
||||||
return confRestricaoCanalVentaDAO.suscribir(entidad);
|
confRestricaoCanalVentaDAO.suscribir(entidad);
|
||||||
|
logAuditoriaService.auditar(null, entidad, entidad.getEmpresa() != null ? entidad.getEmpresa().getEmpresaId() : null);
|
||||||
|
return entidad;
|
||||||
}else{
|
}else{
|
||||||
return confRestricaoCanalVentaDAO.actualizacion(entidad);
|
confRestricaoCanalVentaDAO.actualizacion(entidad);
|
||||||
|
logAuditoriaService.auditar(originalClone, entidad, null);
|
||||||
|
return entidad;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@ -46,6 +65,7 @@ public class ConfRestricaoCanalVentaServiceImpl implements ConfRestricaoCanalVen
|
||||||
entidad.setActivo(Boolean.FALSE);
|
entidad.setActivo(Boolean.FALSE);
|
||||||
|
|
||||||
confRestricaoCanalVentaDAO.actualizacion(entidad);
|
confRestricaoCanalVentaDAO.actualizacion(entidad);
|
||||||
|
logAuditoriaService.auditarExclusao(entidad, entidad.getEmpresa() != null ? entidad.getEmpresa().getEmpresaId() : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -76,5 +76,4 @@ public class ConfRestricaoOrgaoConcedenteServiceImpl implements ConfRestricaoOrg
|
||||||
confRestricaoOrgaoConcedenteDAO.actualizacion(entidad);
|
confRestricaoOrgaoConcedenteDAO.actualizacion(entidad);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
public class ConfRestricaoRutasServiceImpl implements ConfRestricaoRutasService {
|
public class ConfRestricaoRutasServiceImpl implements ConfRestricaoRutasService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
ConfRestricaoRutasDAO confRestricaoRutasDAO;
|
private ConfRestricaoRutasDAO confRestricaoRutasDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private RutaService rutaService;
|
private RutaService rutaService;
|
||||||
|
|
||||||
|
@ -76,5 +76,4 @@ public class ConfRestricaoRutasServiceImpl implements ConfRestricaoRutasService
|
||||||
confRestricaoRutasDAO.actualizacion(entidad);
|
confRestricaoRutasDAO.actualizacion(entidad);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,13 +10,16 @@ import org.springframework.transaction.annotation.Transactional;
|
||||||
import com.rjconsultores.ventaboletos.dao.ConfRestricaoTramoDAO;
|
import com.rjconsultores.ventaboletos.dao.ConfRestricaoTramoDAO;
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoTramo;
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoTramo;
|
||||||
import com.rjconsultores.ventaboletos.service.ConfRestricaoTramoService;
|
import com.rjconsultores.ventaboletos.service.ConfRestricaoTramoService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
|
||||||
@Service("confRestricaoTramoService")
|
@Service("confRestricaoTramoService")
|
||||||
public class ConfRestricaoTramoServiceImpl implements ConfRestricaoTramoService {
|
public class ConfRestricaoTramoServiceImpl implements ConfRestricaoTramoService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
ConfRestricaoTramoDAO confRestricaoTramoDAO;
|
private ConfRestricaoTramoDAO confRestricaoTramoDAO;
|
||||||
|
@Autowired
|
||||||
|
private LogAuditoriaService logAuditoriaService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ConfRestricaoTramo> obtenerTodos() {
|
public List<ConfRestricaoTramo> obtenerTodos() {
|
||||||
|
@ -54,7 +57,19 @@ public class ConfRestricaoTramoServiceImpl implements ConfRestricaoTramoService
|
||||||
entidad.setActivo(Boolean.FALSE);
|
entidad.setActivo(Boolean.FALSE);
|
||||||
|
|
||||||
confRestricaoTramoDAO.actualizacion(entidad);
|
confRestricaoTramoDAO.actualizacion(entidad);
|
||||||
|
// logAuditoriaService.auditarExclusao(entidad, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void actualizacionAuditagem(List<ConfRestricaoTramo> lsConfRestricaoTramo) {
|
||||||
|
for (ConfRestricaoTramo cc : lsConfRestricaoTramo) {
|
||||||
|
if(Boolean.TRUE.equals(cc.getActivo())) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
confRestricaoTramoDAO.actualizacion(cc);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -10,6 +12,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||||
import com.rjconsultores.ventaboletos.dao.ConfRestricaoVendaWebDAO;
|
import com.rjconsultores.ventaboletos.dao.ConfRestricaoVendaWebDAO;
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoVendaWeb;
|
import com.rjconsultores.ventaboletos.entidad.ConfRestricaoVendaWeb;
|
||||||
import com.rjconsultores.ventaboletos.service.ConfRestricaoVendaWebService;
|
import com.rjconsultores.ventaboletos.service.ConfRestricaoVendaWebService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +20,11 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
public class ConfRestricaoVendaWebServiceImpl implements ConfRestricaoVendaWebService{
|
public class ConfRestricaoVendaWebServiceImpl implements ConfRestricaoVendaWebService{
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
ConfRestricaoVendaWebDAO confRestricaoVendaWebDAO;
|
private ConfRestricaoVendaWebDAO confRestricaoVendaWebDAO;
|
||||||
|
private static Logger log = LoggerFactory.getLogger(ConfRestricaoVendaWebServiceImpl.class);
|
||||||
|
@Autowired
|
||||||
|
private LogAuditoriaService logAuditoriaService;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@ -26,7 +33,9 @@ public class ConfRestricaoVendaWebServiceImpl implements ConfRestricaoVendaWebSe
|
||||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||||
entidad.setActivo(Boolean.TRUE);
|
entidad.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
return confRestricaoVendaWebDAO.suscribir(entidad);
|
confRestricaoVendaWebDAO.suscribir(entidad);
|
||||||
|
logAuditoriaService.auditar(null, entidad, entidad.getEmpresa() != null ? entidad.getEmpresa().getEmpresaId() : null);
|
||||||
|
return entidad;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -45,17 +54,28 @@ public class ConfRestricaoVendaWebServiceImpl implements ConfRestricaoVendaWebSe
|
||||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||||
entidad.setActivo(Boolean.FALSE);
|
entidad.setActivo(Boolean.FALSE);
|
||||||
|
|
||||||
confRestricaoVendaWebDAO.actualizacion(entidad);
|
confRestricaoVendaWebDAO.actualizacion(entidad);
|
||||||
|
logAuditoriaService.auditarExclusao(entidad, entidad.getEmpresa() != null && entidad.getEmpresa() != null ? entidad.getEmpresa().getEmpresaId() : null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public ConfRestricaoVendaWeb actualizacion(ConfRestricaoVendaWeb entidad) {
|
public ConfRestricaoVendaWeb actualizacion(ConfRestricaoVendaWeb entidad) {
|
||||||
|
|
||||||
|
ConfRestricaoVendaWeb originalClone = null;
|
||||||
|
try {
|
||||||
|
originalClone = entidad.getCloneObject();
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("Erro ao clonar TitularId",e);
|
||||||
|
}
|
||||||
|
|
||||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||||
entidad.setActivo(Boolean.TRUE);
|
entidad.setActivo(Boolean.TRUE);
|
||||||
|
confRestricaoVendaWebDAO.actualizacion(entidad);
|
||||||
|
logAuditoriaService.auditar(originalClone, entidad, null);
|
||||||
|
|
||||||
return confRestricaoVendaWebDAO.actualizacion(entidad);
|
return entidad;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue