git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@24847 d1611594-4594-4d17-8e1d-87c2c4800839
parent
621b3d7e21
commit
73740b7b78
|
@ -101,7 +101,7 @@
|
|||
<classpathentry kind="lib" path="/LibreriasAdmVenta/jasperreports-4.5.0.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/jfreechart-1.0.12.jar"/>
|
||||
<classpathentry kind="lib" path="/LibreriasAdmVenta/poi-3.8-20120326.jar"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre6">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="java"/>
|
||||
</attributes>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<runtime name="JBoss 6.x Runtime"/>
|
||||
<runtime name="JBoss 6.0 Runtime"/>
|
||||
<fixed facet="jst.utility"/>
|
||||
<fixed facet="java"/>
|
||||
<installed facet="java" version="1.6"/>
|
||||
|
|
|
@ -29,7 +29,7 @@ import javax.persistence.SequenceGenerator;
|
|||
@SequenceGenerator(name = "CATEGORIA_SEQ", sequenceName = "CATEGORIA_SEQ", allocationSize = 1)
|
||||
@Table(name = "CATEGORIA")
|
||||
public class Categoria implements Serializable {
|
||||
|
||||
public static Integer CATEGORIA_NORMAL = 1;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
|
@ -141,7 +141,8 @@ public class Categoria implements Serializable {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||
// TODO: Warning - this method won't work in the case the id fields are
|
||||
// not set
|
||||
if (!(object instanceof Categoria)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ public class CategoriaCtrlServiceImpl implements CategoriaCtrlService {
|
|||
|
||||
/**
|
||||
* Verifica se existe la categoria adulto. Sino existe, la adicciona.
|
||||
*
|
||||
* @param categoriaCtrl
|
||||
*/
|
||||
private void checarCategoriaAdulto(CategoriaCtrl categoriaCtrl) {
|
||||
|
@ -118,7 +119,6 @@ public class CategoriaCtrlServiceImpl implements CategoriaCtrlService {
|
|||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
entidad.setActivo(Boolean.FALSE);
|
||||
|
||||
|
||||
categoriaCtrlDAO.actualizacion(entidad);
|
||||
}
|
||||
|
||||
|
@ -154,6 +154,7 @@ public class CategoriaCtrlServiceImpl implements CategoriaCtrlService {
|
|||
cd.setFecmodif(new java.util.Date());
|
||||
cd.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
|
||||
cd.setIndAplicaFeriado(CategoriaDescuento.DisponibilidadeFeriado.GERARSEMPRE.valor());
|
||||
|
||||
return cd;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue