Download TOMO 2 - Repositorio CISC

Transcript
41
public Long getIdPadre() {
return idPadre;
}
public void setIdPadre(Long idPadre) {
this.idPadre = idPadre;
}
public String getNombre() {
return nombre;
}
public Set getMenus() {
return menus;
}
public void setMenus(Set menus) {
this.menus = menus;
}
public String getMostrable() {
return mostrable;
}
public void setMostrable(String mostrable) {
this.mostrable = mostrable;
}
public boolean isMenuMostrable(){
if (mostrable != null) {
if(mostrable.compareTo( Menu.MOSTRABLE )== 0) {
return true;
}else
if(mostrable.compareTo( Menu.NO_MOSTRABLE )== 0){
return false;
}
}
return false;
}
}
Rol.hbm.xml
Mapeo de la tabla ROL
<hibernate-mapping
>
<class
name="com.bvg.comun.security.model.auth.Rol"
table="ROL"
>
<id
name="id"