Commit 06d2196e by Juho Juopperi

ungeneralize type

1 parent 7aa09958
......@@ -44,7 +44,7 @@ public class OrgRoleBean implements OrgRoleBeanLocal {
}
@Override
public ModelInterface find(Integer id) {
public OrgRole find(Integer id) {
return orgRoleFacade.find(id);
}
......
......@@ -5,14 +5,13 @@ import java.util.List;
import javax.ejb.Local;
import fi.insomnia.bortal.model.OrgRole;
import fi.insomnia.bortal.utilities.jpa.ModelInterface;
@Local
public interface OrgRoleBeanLocal {
List<OrgRole> listOrgRoles();
ModelInterface find(Integer id);
OrgRole find(Integer id);
List<OrgRole> getPossibleParents(OrgRole orgRole);
......
......@@ -5,18 +5,18 @@ import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import fi.insomnia.bortal.beans.OrgRoleBeanLocal;
import fi.insomnia.bortal.utilities.jpa.ModelInterface;
import fi.insomnia.bortal.model.OrgRole;
import fi.insomnia.bortal.utilities.jsf.GenericIntegerEntityConverter;
@Named("orgRoleConverter")
@RequestScoped
public class OrgRoleConverter extends GenericIntegerEntityConverter {
public class OrgRoleConverter extends GenericIntegerEntityConverter<OrgRole> {
@EJB
private OrgRoleBeanLocal orgRoleBean;
@Override
protected ModelInterface find(Integer id) {
protected OrgRole find(Integer id) {
return orgRoleBean.find(id);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!