MenuNavigationConverter.java 648 Bytes
package fi.codecrew.moya.web.converter;

import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

import fi.codecrew.moya.beans.EventMapBeanLocal;
import fi.codecrew.moya.beans.MenuBeanLocal;
import fi.codecrew.moya.model.EventMap;
import fi.codecrew.moya.model.MenuNavigation;
import fi.codecrew.moya.utilities.jsf.GenericIntegerEntityConverter;

@Named()
@RequestScoped
public class MenuNavigationConverter extends GenericIntegerEntityConverter<MenuNavigation> {

	@EJB
	private MenuBeanLocal menuBean;

	@Override
	protected MenuNavigation find(Integer id) {
		return menuBean.findNavigationId(id);
	}

}