Blame |
Last modification |
View Log
| Download
| RSS feed
package br.com.ec.domain.dto;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class VendasDTO
{
private Long sequencial
;
private String descricaoLoja
;
private Date dataVenda
;
private Double valorVenda
;
private String tipoSituacao
;
private String nomeUsuario
;
private String observacao
;
public List<VendasLancamentoDTO
> lancamentos =
new ArrayList<VendasLancamentoDTO
>();
public Long getSequencial
() {
return sequencial
;
}
public void setSequencial
(Long sequencial
) {
this.
sequencial = sequencial
;
}
public String getDescricaoLoja
() {
return descricaoLoja
;
}
public void setDescricaoLoja
(String descricaoLoja
) {
this.
descricaoLoja = descricaoLoja
;
}
public Date getDataVenda
() {
return dataVenda
;
}
public void setDataVenda
(Date dataVenda
) {
this.
dataVenda = dataVenda
;
}
public Double getValorVenda
() {
return valorVenda
;
}
public void setValorVenda
(Double valorVenda
) {
this.
valorVenda = valorVenda
;
}
public String getTipoSituacao
() {
return tipoSituacao
;
}
public void setTipoSituacao
(String tipoSituacao
) {
this.
tipoSituacao = tipoSituacao
;
}
public String getNomeUsuario
() {
return nomeUsuario
;
}
public void setNomeUsuario
(String nomeUsuario
) {
this.
nomeUsuario = nomeUsuario
;
}
public String getObservacao
() {
return observacao
;
}
public void setObservacao
(String observacao
) {
this.
observacao = observacao
;
}
public List<VendasLancamentoDTO
> getLancamentos
() {
return lancamentos
;
}
public void setLancamentos
(List<VendasLancamentoDTO
> lancamentos
) {
this.
lancamentos = lancamentos
;
}
@
Override
public int hashCode
() {
final int prime =
31;
int result =
1;
result = prime
* result +
((sequencial ==
null) ? 0 : sequencial.
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;
VendasDTO other =
(VendasDTO
) obj
;
if (sequencial ==
null) {
if (other.
sequencial !=
null)
return false;
} else if (!sequencial.
equals(other.
sequencial))
return false;
return true;
}
}