Blame |
Last modification |
View Log
| Download
| RSS feed
package br.gov.al.saude.scs.model.view;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
@Embeddable
public class ProcessoElementoViewId
implements Serializable {
private static final long serialVersionUID = 1L
;
private String elementoDespesa
;
private String fonteRecurso
;
private Double valorOrcado
;
@Column
(name=
"dsc_elemento_despesa")
public String getElementoDespesa
() {
return elementoDespesa
;
}
public void setElementoDespesa
(String elementoDespesa
) {
this.
elementoDespesa = elementoDespesa
;
}
@Column
(name=
"dsc_fonte_recurso")
public String getFonteRecurso
() {
return fonteRecurso
;
}
public void setFonteRecurso
(String fonteRecurso
) {
this.
fonteRecurso = fonteRecurso
;
}
@Column
(name=
"val_orcado")
public Double getValorOrcado
() {
return valorOrcado
;
}
public void setValorOrcado
(Double valorOrcado
) {
this.
valorOrcado = valorOrcado
;
}
@
Override
public int hashCode
() {
final int prime =
31;
int result =
1;
result = prime
* result
+
((elementoDespesa ==
null) ? 0 : elementoDespesa.
hashCode());
result = prime
* result
+
((fonteRecurso ==
null) ? 0 : fonteRecurso.
hashCode());
result = prime
* result
+
((valorOrcado ==
null) ? 0 : valorOrcado.
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;
ProcessoElementoViewId other =
(ProcessoElementoViewId
) obj
;
if (elementoDespesa ==
null) {
if (other.
elementoDespesa !=
null)
return false;
} else if (!elementoDespesa.
equals(other.
elementoDespesa))
return false;
if (fonteRecurso ==
null) {
if (other.
fonteRecurso !=
null)
return false;
} else if (!fonteRecurso.
equals(other.
fonteRecurso))
return false;
if (valorOrcado ==
null) {
if (other.
valorOrcado !=
null)
return false;
} else if (!valorOrcado.
equals(other.
valorOrcado))
return false;
return true;
}
}