diff --git a/pom.xml b/pom.xml
index 4046227b4..200af275d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
br.com.rjconsultores
ModelWeb
- 1.0.27
+ 1.0.28
rj-releases
diff --git a/src/com/rjconsultores/ventaboletos/entidad/CategoriaCtrl.java b/src/com/rjconsultores/ventaboletos/entidad/CategoriaCtrl.java
index 3fbbd0da1..1fb42d77e 100644
--- a/src/com/rjconsultores/ventaboletos/entidad/CategoriaCtrl.java
+++ b/src/com/rjconsultores/ventaboletos/entidad/CategoriaCtrl.java
@@ -26,7 +26,6 @@ import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.apache.commons.lang.BooleanUtils;
-import org.hibernate.Hibernate;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
diff --git a/src/com/rjconsultores/ventaboletos/entidad/FechamentoParamptovta.java b/src/com/rjconsultores/ventaboletos/entidad/FechamentoParamptovta.java
index d1f462dd8..ab5c96614 100644
--- a/src/com/rjconsultores/ventaboletos/entidad/FechamentoParamptovta.java
+++ b/src/com/rjconsultores/ventaboletos/entidad/FechamentoParamptovta.java
@@ -20,10 +20,9 @@ import br.com.rjconsultores.auditador.annotations.AuditarClasse;
import br.com.rjconsultores.auditador.annotations.NaoAuditar;
import br.com.rjconsultores.auditador.interfaces.Auditavel;
-@AuditarClasse(nome = "FechamentoParamptovta", tela = "Alteração de Ponto de Venda/Fechamento Conta Corrente")
@Entity
@Table(name = "FECHAMENTO_PARAMPTOVTA")
-public class FechamentoParamptovta implements Serializable, Auditavel {
+public class FechamentoParamptovta implements Serializable {
private static final long serialVersionUID = 1L;
@@ -36,9 +35,7 @@ public class FechamentoParamptovta implements Serializable, Auditavel {
@Override
public String getTextoInclusaoExclusao() {
- return String.format("ID [%s]", getCategoria().getDesccategoria());
+ String totalbus = Boolean.TRUE.equals(getIndTotalBus()) ? "Totalbus : Sim" : "Totalbus : Não";
+ String embarcada = Boolean.TRUE.equals(getIndEmbarcada()) ? "Embarcada : Sim" : "Embarcada : Não";
+ return String.format("ID [%s]", getCategoria().getDesccategoria()+ "-"+totalbus+ "-"+embarcada);
}
diff --git a/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java b/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java
index 98ee4c17e..f7baad8ff 100644
--- a/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java
+++ b/src/com/rjconsultores/ventaboletos/entidad/PuntoVenta.java
@@ -52,7 +52,7 @@ import br.com.rjconsultores.auditador.interfaces.Auditavel;
*/
@Entity
@SequenceGenerator(name = "PUNTO_VENTA_SEQ", sequenceName = "PUNTO_VENTA_SEQ", allocationSize = 1)
-@AuditarClasse(nome = "PuntoVenta", tela = "Altera��o de Ponto de Venda")
+@AuditarClasse(nome = "PuntoVenta", tela = "Alteracao de Ponto de Venda")
@Table(name = "PUNTO_VENTA")
public class PuntoVenta implements Serializable, Auditavel {
@@ -101,7 +101,7 @@ public class PuntoVenta implements Serializable, Auditavel {
@JoinColumn(name = "TIPOPTOVTA_ID", referencedColumnName = "TIPOPTOVTA_ID")
@ManyToOne
private TipoPuntoVenta tipoPuntoVenta;
- @AuditarLista(auditarEntidades = true, nome = "ReservacionPuntoVenta")
+ @NaoAuditar
@OneToMany(mappedBy = "puntoVenta")
private List reservacionPuntoventaList;
@OneToOne
@@ -228,7 +228,7 @@ public class PuntoVenta implements Serializable, Auditavel {
@LazyCollection(LazyCollectionOption.FALSE)
private List ptovtaSeguroList;
- @AuditarLista(auditarEntidades = true, nome = "PtovtaCatInd")
+ @AuditarLista(auditarEntidades = true, nome = "ptovtaCatIndList")
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoVenta")
@LazyCollection(LazyCollectionOption.FALSE)
private List ptovtaCatIndList;
@@ -1322,15 +1322,15 @@ public class PuntoVenta implements Serializable, Auditavel {
puntoVentaClone = new PuntoVenta();
puntoVentaClone = (PuntoVenta) this.clone();
- if(this.getReservacionPuntoventaList() != null) {
- List lsClones = new ArrayList();
- for (ReservacionPuntoVenta reservacionPuntoVenta : this.getReservacionPuntoventaList()) {
- if(BooleanUtils.isTrue(reservacionPuntoVenta.getActivo())) {
- reservacionPuntoVenta.clonar();
- lsClones.add(reservacionPuntoVenta.getCloneObject());
+ if(this.getPtovtaCatIndList() != null) {
+ List lsClones = new ArrayList();
+ for (PtovtaCatInd ptovtaCatInd : this.getPtovtaCatIndList()) {
+ if(BooleanUtils.isTrue(ptovtaCatInd.getActivo())) {
+ ptovtaCatInd.clonar();
+ lsClones.add(ptovtaCatInd.getCloneObject());
}
}
- puntoVentaClone.setReservacionPuntoventaList(lsClones);
+ puntoVentaClone.setPtovtaCatIndList(lsClones);
}
}
@@ -1344,4 +1344,5 @@ public class PuntoVenta implements Serializable, Auditavel {
public String getTextoInclusaoExclusao() {
return String.format("ID [%s]", getPuntoventaId());
}
+
}
\ No newline at end of file
diff --git a/src/com/rjconsultores/ventaboletos/service/impl/FechamentoParamptovtaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/FechamentoParamptovtaServiceImpl.java
index bcf699a29..99e340731 100644
--- a/src/com/rjconsultores/ventaboletos/service/impl/FechamentoParamptovtaServiceImpl.java
+++ b/src/com/rjconsultores/ventaboletos/service/impl/FechamentoParamptovtaServiceImpl.java
@@ -33,13 +33,7 @@ public class FechamentoParamptovtaServiceImpl implements FechamentoParamptovtaSe
@Override
public FechamentoParamptovta obtenerID(Long id) {
- FechamentoParamptovta fechamentoParamptovta = fechamentoParamptovtaDAO.obtenerID(id);
- try {
- fechamentoParamptovta.clonar();
- } catch (Exception e) {
- log.error(e.getMessage(), e);
- }
- return fechamentoParamptovta;
+ return fechamentoParamptovtaDAO.obtenerID(id);
}
@@ -57,11 +51,6 @@ public class FechamentoParamptovtaServiceImpl implements FechamentoParamptovtaSe
public FechamentoParamptovta actualizacion(FechamentoParamptovta entidad) {
entidad.setFecmodif(new Date());
FechamentoParamptovta originalClone = null;
- try {
- originalClone = entidad.getCloneObject();
- } catch (Exception e) {
- log.error("",e);
- }
fechamentoParamptovtaDAO.actualizacion(entidad);
logAuditoriaService.auditar(originalClone, entidad, entidad.getEmpresa() != null ? entidad.getEmpresa().getEmpresaId() : null);
return entidad;
diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PtovtaCatIndServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PtovtaCatIndServiceImpl.java
index 0c8636d95..cfdef1f35 100644
--- a/src/com/rjconsultores/ventaboletos/service/impl/PtovtaCatIndServiceImpl.java
+++ b/src/com/rjconsultores/ventaboletos/service/impl/PtovtaCatIndServiceImpl.java
@@ -9,7 +9,6 @@ import org.springframework.transaction.annotation.Transactional;
import com.rjconsultores.ventaboletos.dao.PtovtaCatIndDAO;
import com.rjconsultores.ventaboletos.entidad.PtovtaCatInd;
-import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
import com.rjconsultores.ventaboletos.service.PtovtaCatIndService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
@@ -18,8 +17,6 @@ public class PtovtaCatIndServiceImpl implements PtovtaCatIndService {
@Autowired
private PtovtaCatIndDAO ptovtaCatIndDAO;
- @Autowired
- private LogAuditoriaService logAuditoriaService;
@Override
public List obtenerTodos() {
@@ -56,8 +53,6 @@ public class PtovtaCatIndServiceImpl implements PtovtaCatIndService {
entidad.setFecmodif(Calendar.getInstance().getTime());
entidad.setActivo(Boolean.FALSE);
ptovtaCatIndDAO.actualizacion(entidad);
- logAuditoriaService.auditarExclusao(entidad, entidad.getEmpresa() != null ? entidad.getEmpresa().getEmpresaId() : null);
-
}