/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ec.gob.mcds.seguridades.dto;
import java.io.Serializable;
/**
*
* @author christian
*/
public class EntityMenu implements Serializable {
private Long idMenu;
private String etiquetaMenu;
private String actionMenu;
private Long idMenuPadre;
private Long idEstadoUsuario;
private Long idUsuario;
private Boolean nodoFinal;
private Integer orden;
public EntityMenu(Long idMenu, String etiquetaMenu, String actionMenu, Long idMenuPadre, Long idEstadoUsuario, Long idUsuario, Boolean nodoFinal, Integer orden) {
this.idMenu = idMenu;
this.etiquetaMenu = etiquetaMenu;
this.actionMenu = actionMenu;
this.idMenuPadre = idMenuPadre;
this.idEstadoUsuario = idEstadoUsuario;
this.idUsuario = idUsuario;
this.nodoFinal = nodoFinal;
this.orden = orden;
}
/**
* @return the idMenu
*/
public Long getIdMenu() {
return idMenu;
}
/**
* @param idMenu the idMenu to set
*/
public void setIdMenu(Long idMenu) {
this.idMenu = idMenu;
}
/**
* @return the etiquetaMenu
*/
public String getEtiquetaMenu() {
return etiquetaMenu;
}
/**
* @param etiquetaMenu the etiquetaMenu to set
*/
public void setEtiquetaMenu(String etiquetaMenu) {
this.etiquetaMenu = etiquetaMenu;
}
/**
* @return the actionMenu
*/
public String getActionMenu() {
return actionMenu;
}
/**
* @param actionMenu the actionMenu to set
*/
public void setActionMenu(String actionMenu) {
this.actionMenu = actionMenu;
}
/**
* @return the idMenuPadre
*/
public Long getIdMenuPadre() {
return idMenuPadre;
}
/**
* @param idMenuPadre the idMenuPadre to set
*/
public void setIdMenuPadre(Long idMenuPadre) {
this.idMenuPadre = idMenuPadre;
}
/**
* @return the idEstadoUsuario
*/
public Long getIdEstadoUsuario() {
return idEstadoUsuario;
}
/**
* @param idEstadoUsuario the idEstadoUsuario to set
*/
public void setIdEstadoUsuario(Long idEstadoUsuario) {
this.idEstadoUsuario = idEstadoUsuario;
}
/**
* @return the idUsuario
*/
public Long getIdUsuario() {
return idUsuario;
}
/**
* @param idUsuario the idUsuario to set
*/
public void setIdUsuario(Long idUsuario) {
this.idUsuario = idUsuario;
}
/**
* @return the nodoFinal
*/
public Boolean getNodoFinal() {
return nodoFinal;
}
/**
* @param nodoFinal the nodoFinal to set
*/
public void setNodoFinal(Boolean nodoFinal) {
this.nodoFinal = nodoFinal;
}
/**
* @return the orden
*/
public Integer getOrden() {
return orden;
}
/**
* @param orden the orden to set
*/
public void setOrden(Integer orden) {
this.orden = orden;
}
@Override
public int hashCode() {
int hash = 0;
hash += (idMenu != null ? idMenu.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof EntityMenu)) {
return false;
}
EntityMenu other = (EntityMenu) object;
if ((this.idMenu == null && other.idMenu != null) || (this.idMenu != null && !this.idMenu.equals(other.idMenu))) {
return false;
}
return true;
}
}