Merge pull request 'AL-4271' (!197) from AL-4271_1 into master
Reviewed-on: adm/ModelWeb#197 Reviewed-by: wallace <wallace@rjconsultores.com.br>master
commit
ebc9334098
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ModelWeb</artifactId>
|
||||
<version>1.62.0</version>
|
||||
<version>1.62.1</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig;
|
||||
|
||||
public interface EmpresaAsistenciaDeViajeConfigDAO extends GenericDAO<EmpresaAsistenciaDeViajeConfig, Integer> {
|
||||
|
||||
public EmpresaAsistenciaDeViajeConfig buscarChave(String chave, Integer empresaId);
|
||||
|
||||
public List<EmpresaAsistenciaDeViajeConfig> buscarByEmpresa(Integer empresaId);
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig;
|
||||
|
||||
public interface EmpresaCrediBancoConfigDAO extends GenericDAO<EmpresaCrediBancoConfig, Integer> {
|
||||
|
||||
public EmpresaCrediBancoConfig buscarChave(String chave, Integer empresaId);
|
||||
|
||||
public List<EmpresaCrediBancoConfig> buscarByEmpresa(Integer empresaId);
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.EmpresaAsistenciaDeViajeConfigDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig;
|
||||
|
||||
@Repository("empresaAsistenciaDeViajeConfigDAO")
|
||||
public class EmpresaAsistenciaDeViajeConfigHibernateDAO extends
|
||||
GenericHibernateDAO<EmpresaAsistenciaDeViajeConfig, Integer> implements EmpresaAsistenciaDeViajeConfigDAO {
|
||||
|
||||
@Autowired
|
||||
public EmpresaAsistenciaDeViajeConfigHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EmpresaAsistenciaDeViajeConfig> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public EmpresaAsistenciaDeViajeConfig buscarChave(String chave, Integer empresaId) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
c.add(Restrictions.eq("chave", chave));
|
||||
c.add(Restrictions.eq("empresa.empresaId", empresaId));
|
||||
|
||||
return (EmpresaAsistenciaDeViajeConfig) c.uniqueResult();
|
||||
}
|
||||
|
||||
public List<EmpresaAsistenciaDeViajeConfig> buscarByEmpresa(Integer empresaId) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("empresa.empresaId", empresaId));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.EmpresaCrediBancoConfigDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig;
|
||||
|
||||
@Repository("empresaCrediBancoConfigDAO")
|
||||
public class EmpresaCrediBancoConfigHibernateDAO extends GenericHibernateDAO<EmpresaCrediBancoConfig, Integer>
|
||||
implements EmpresaCrediBancoConfigDAO {
|
||||
|
||||
@Autowired
|
||||
public EmpresaCrediBancoConfigHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EmpresaCrediBancoConfig> obtenerTodos() {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
|
||||
public EmpresaCrediBancoConfig buscarChave(String chave, Integer empresaId) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
|
||||
c.add(Restrictions.eq("chave", chave));
|
||||
c.add(Restrictions.eq("empresa.empresaId", empresaId));
|
||||
|
||||
return (EmpresaCrediBancoConfig) c.uniqueResult();
|
||||
}
|
||||
|
||||
public List<EmpresaCrediBancoConfig> buscarByEmpresa(Integer empresaId) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.eq("empresa.empresaId", empresaId));
|
||||
|
||||
return c.list();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,139 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@SequenceGenerator(name = "EMPRESA_ASISTVIAJE_CONFIG_SEQ", sequenceName = "EMPRESA_ASISTVIAJE_CONFIG_SEQ", allocationSize = 1)
|
||||
@Table(name = "EMPRESA_ASISTVIAJE_CONFIG")
|
||||
public class EmpresaAsistenciaDeViajeConfig implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "EMPRESA_ASISTVIAJE_CONFIG_SEQ")
|
||||
@Column(name = "EMPRESAASISTVIAJECONFIG_ID")
|
||||
private Integer empresaAsistenciaDeViajeConfigId;
|
||||
@OneToOne
|
||||
@JoinColumn(name = "EMPRESA_ID")
|
||||
private Empresa empresa;
|
||||
|
||||
@Column(name = "CHAVE")
|
||||
private String chave;
|
||||
|
||||
@Column(name = "VALOR")
|
||||
private String valor;
|
||||
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
|
||||
public EmpresaAsistenciaDeViajeConfig() {
|
||||
|
||||
}
|
||||
|
||||
public Integer getEmpresaAsistenciaDeViajeConfigId() {
|
||||
return empresaAsistenciaDeViajeConfigId;
|
||||
}
|
||||
|
||||
public void setEmpresaAsistenciaDeViajeConfigId(Integer empresaAsistenciaDeViajeConfigId) {
|
||||
this.empresaAsistenciaDeViajeConfigId = empresaAsistenciaDeViajeConfigId;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public String getChave() {
|
||||
return chave;
|
||||
}
|
||||
|
||||
public void setChave(String chave) {
|
||||
this.chave = chave;
|
||||
}
|
||||
|
||||
public String getValor() {
|
||||
return valor;
|
||||
}
|
||||
|
||||
public void setValor(String valor) {
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result
|
||||
+ ((empresaAsistenciaDeViajeConfigId == null) ? 0 : empresaAsistenciaDeViajeConfigId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
EmpresaAsistenciaDeViajeConfig other = (EmpresaAsistenciaDeViajeConfig) obj;
|
||||
if (empresaAsistenciaDeViajeConfigId == null) {
|
||||
if (other.empresaAsistenciaDeViajeConfigId != null)
|
||||
return false;
|
||||
} else if (!empresaAsistenciaDeViajeConfigId.equals(other.empresaAsistenciaDeViajeConfigId))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(this.getEmpresaAsistenciaDeViajeConfigId());
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,138 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@SequenceGenerator(name = "EMPRESA_CREDIBANCO_CONFIG_SEQ", sequenceName = "EMPRESA_CREDIBANCO_CONFIG_SEQ", allocationSize = 1)
|
||||
@Table(name = "EMPRESA_CREDIBANCO_CONFIG")
|
||||
public class EmpresaCrediBancoConfig implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "EMPRESA_CREDIBANCO_CONFIG_SEQ")
|
||||
@Column(name = "EMPRESACREDIBANCOCONFIG_ID")
|
||||
private Integer empresaCrediBancoConfigId;
|
||||
@OneToOne
|
||||
@JoinColumn(name = "EMPRESA_ID")
|
||||
private Empresa empresa;
|
||||
|
||||
@Column(name = "CHAVE")
|
||||
private String chave;
|
||||
|
||||
@Column(name = "VALOR")
|
||||
private String valor;
|
||||
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
|
||||
public EmpresaCrediBancoConfig() {
|
||||
|
||||
}
|
||||
|
||||
public Integer getEmpresaCrediBancoConfigId() {
|
||||
return empresaCrediBancoConfigId;
|
||||
}
|
||||
|
||||
public void setEmpresaCrediBancoConfigId(Integer empresaCrediBancoConfigId) {
|
||||
this.empresaCrediBancoConfigId = empresaCrediBancoConfigId;
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public String getChave() {
|
||||
return chave;
|
||||
}
|
||||
|
||||
public void setChave(String chave) {
|
||||
this.chave = chave;
|
||||
}
|
||||
|
||||
public String getValor() {
|
||||
return valor;
|
||||
}
|
||||
|
||||
public void setValor(String valor) {
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((empresaCrediBancoConfigId == null) ? 0 : empresaCrediBancoConfigId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
EmpresaCrediBancoConfig other = (EmpresaCrediBancoConfig) obj;
|
||||
if (empresaCrediBancoConfigId == null) {
|
||||
if (other.empresaCrediBancoConfigId != null)
|
||||
return false;
|
||||
} else if (!empresaCrediBancoConfigId.equals(other.empresaCrediBancoConfigId))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(this.getEmpresaCrediBancoConfigId());
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig;
|
||||
|
||||
public interface EmpresaAsistenciaDeViajeConfigService extends GenericService<EmpresaAsistenciaDeViajeConfig, Integer> {
|
||||
|
||||
public EmpresaAsistenciaDeViajeConfig buscarChave(String chave, Integer empresaId);
|
||||
|
||||
public List<EmpresaAsistenciaDeViajeConfig> buscarByEmpresa(Integer empresaId);
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig;
|
||||
|
||||
public interface EmpresaCrediBancoConfigService extends GenericService<EmpresaCrediBancoConfig, Integer> {
|
||||
|
||||
public EmpresaCrediBancoConfig buscarChave(String chave, Integer empresaId);
|
||||
|
||||
public List<EmpresaCrediBancoConfig> buscarByEmpresa(Integer empresaId);
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.EmpresaAsistenciaDeViajeConfigDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaAsistenciaDeViajeConfigService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
||||
@Service("empresaAsistenciaDeViajeConfigService")
|
||||
public class EmpresaAsistenciaDeViajeConfigServiceImpl implements EmpresaAsistenciaDeViajeConfigService {
|
||||
|
||||
@Autowired
|
||||
private EmpresaAsistenciaDeViajeConfigDAO empresaAsistenciaDeViajeConfigDAO;
|
||||
|
||||
public List<EmpresaAsistenciaDeViajeConfig> obtenerTodos() {
|
||||
return empresaAsistenciaDeViajeConfigDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public EmpresaAsistenciaDeViajeConfig obtenerID(Integer id) {
|
||||
return empresaAsistenciaDeViajeConfigDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public EmpresaAsistenciaDeViajeConfig suscribir(EmpresaAsistenciaDeViajeConfig entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
|
||||
return empresaAsistenciaDeViajeConfigDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public EmpresaAsistenciaDeViajeConfig actualizacion(EmpresaAsistenciaDeViajeConfig entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
|
||||
return empresaAsistenciaDeViajeConfigDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(EmpresaAsistenciaDeViajeConfig entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
|
||||
empresaAsistenciaDeViajeConfigDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public EmpresaAsistenciaDeViajeConfig buscarChave(String chave, Integer empresaId) {
|
||||
return empresaAsistenciaDeViajeConfigDAO.buscarChave(chave, empresaId);
|
||||
}
|
||||
|
||||
public List<EmpresaAsistenciaDeViajeConfig> buscarByEmpresa(Integer empresaId) {
|
||||
return empresaAsistenciaDeViajeConfigDAO.buscarByEmpresa(empresaId);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
|
||||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.EmpresaCrediBancoConfigDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaCrediBancoConfigService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
||||
@Service("empresaCrediBancoConfigService")
|
||||
public class EmpresaCrediBancoConfigServiceImpl implements EmpresaCrediBancoConfigService {
|
||||
|
||||
@Autowired
|
||||
private EmpresaCrediBancoConfigDAO empresaCrediBancoConfigDAO;
|
||||
|
||||
public List<EmpresaCrediBancoConfig> obtenerTodos() {
|
||||
return empresaCrediBancoConfigDAO.obtenerTodos();
|
||||
}
|
||||
|
||||
public EmpresaCrediBancoConfig obtenerID(Integer id) {
|
||||
return empresaCrediBancoConfigDAO.obtenerID(id);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public EmpresaCrediBancoConfig suscribir(EmpresaCrediBancoConfig entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
|
||||
return empresaCrediBancoConfigDAO.suscribir(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public EmpresaCrediBancoConfig actualizacion(EmpresaCrediBancoConfig entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.TRUE);
|
||||
|
||||
return empresaCrediBancoConfigDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void borrar(EmpresaCrediBancoConfig entidad) {
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
|
||||
empresaCrediBancoConfigDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
public EmpresaCrediBancoConfig buscarChave(String chave, Integer empresaId) {
|
||||
return empresaCrediBancoConfigDAO.buscarChave(chave, empresaId);
|
||||
}
|
||||
|
||||
public List<EmpresaCrediBancoConfig> buscarByEmpresa(Integer empresaId) {
|
||||
return empresaCrediBancoConfigDAO.buscarByEmpresa(empresaId);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue