fixes bug 0009072 - foi alterada a logica de inserção e remoção do canal de venda e Agencia
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@73359 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a496f1efc4
commit
5efce21efa
|
@ -92,6 +92,41 @@ public class PricingEspecificoAgencia implements Serializable {
|
|||
public void setPricingEspecifico(PricingEspecifico pricingEspecifico) {
|
||||
this.pricingEspecifico = pricingEspecifico;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((activo == null) ? 0 : activo.hashCode());
|
||||
result = prime * result + ((pricingEspecifico == null) ? 0 : pricingEspecifico.hashCode());
|
||||
result = prime * result + ((puntoVenta == null) ? 0 : puntoVenta.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;
|
||||
PricingEspecificoAgencia other = (PricingEspecificoAgencia) obj;
|
||||
if (activo == null) {
|
||||
if (other.activo != null)
|
||||
return false;
|
||||
} else if (!activo.equals(other.activo))
|
||||
return false;
|
||||
if (pricingEspecifico == null) {
|
||||
if (other.pricingEspecifico != null)
|
||||
return false;
|
||||
} else if (!pricingEspecifico.equals(other.pricingEspecifico))
|
||||
return false;
|
||||
if (puntoVenta == null) {
|
||||
if (other.puntoVenta != null)
|
||||
return false;
|
||||
} else if (!puntoVenta.equals(other.puntoVenta))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -16,6 +16,10 @@ import javax.persistence.Table;
|
|||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
* @author Bruno Rodrigo
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@SequenceGenerator(name = "PRICING_ESP_CANAL_SEQ", sequenceName = "PRICING_ESP_CANAL_SEQ", allocationSize = 1)
|
||||
@Table(name = "PRICING_ESP_CANAL_VENTA")
|
||||
|
@ -128,6 +132,10 @@ public class PricingEspecificoCanalVendas implements Serializable {
|
|||
return false;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PricingEspecificoCanalVendas [tipoPtovta=" + tipoPtovta + ", activo=" + activo + "]";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue