Package com.eastidea.qaforum.model

Examples of com.eastidea.qaforum.model.Position


      Department depart = entityManager.find(Department.class, Long
          .valueOf(departmentid));
      user.setDepartment(depart);
    }
    if (positionid != null && !positionid.equals("")) {
      Position pos = entityManager.find(Position.class, Long
          .valueOf(positionid));
      user.setPosition(pos);
      user.setPositionName(pos.getName());
    }
    entityManager.persist(user);
  }
View Full Code Here


      Department depart = entityManager.find(Department.class, Long
          .valueOf(departmentid));
      user.setDepartment(depart);
    }
    if (positionid != null && !positionid.equals("")) {
      Position pos = entityManager.find(Position.class, Long
          .valueOf(positionid));
      user.setPosition(pos);
      user.setPositionName(pos.getName());
    }
    entityManager.persist(user);
  }
View Full Code Here

  public ArrayList<SelectItem> getPositionDictionary(){
    ArrayList<SelectItem> dictionary  = new ArrayList<SelectItem>();
   
    List<Position> list = getAllPosition();
   
    Position position;
    Iterator i = list.iterator();
        while( i.hasNext() )
        {
          position = (Position)i.next();
          dictionary.add( new SelectItem( position.getPositionid().toString(),
              position.getName()));
        }
        return dictionary;
  }
View Full Code Here

TOP

Related Classes of com.eastidea.qaforum.model.Position

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.