Blame |
Last modification |
View Log
| Download
| RSS feed
package br.gov.al.saude.rhd.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
@Embeddable
public class CargaHorariaExigidaId
implements Serializable{
private static final long serialVersionUID = 1L
;
private String classe
;
private String nivel
;
@Column
(name =
"tip_classe", nullable =
false)
public String getClasse
() {
return classe
;
}
public void setClasse
(String classe
) {
this.
classe = classe
;
}
@Column
(name =
"tip_nivel", nullable =
false)
public String getNivel
() {
return nivel
;
}
public void setNivel
(String nivel
) {
this.
nivel = nivel
;
}
@
Override
public int hashCode
() {
final int prime =
31;
int result =
1;
result = prime
* result
+
((classe ==
null) ? 0 : classe.
hashCode());
result = prime
* result
+
((nivel ==
null) ? 0 : nivel
.
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;
CargaHorariaExigidaId other =
(CargaHorariaExigidaId
) obj
;
if (classe ==
null) {
if (other.
classe !=
null)
return false;
} else if (!classe.
equals(other.
classe))
return false;
if (nivel ==
null) {
if (other.
nivel !=
null)
return false;
} else if (!nivel.
equals(other.
nivel))
return false;
return true;
}
}