EventUserConverter.java
530 Bytes
package fi.codecrew.moya.web.converter;
import javax.ejb.EJB;
import javax.faces.bean.RequestScoped;
import javax.inject.Named;
import fi.codecrew.moya.beans.UserBeanLocal;
import fi.codecrew.moya.model.EventUser;
import fi.codecrew.moya.utilities.jsf.GenericIntegerEntityConverter;
@Named
@RequestScoped
public class EventUserConverter extends GenericIntegerEntityConverter<EventUser> {
@EJB
private UserBeanLocal userbean;
@Override
protected EventUser find(Integer id) {
return userbean.findByEventUserId(id);
}
}