Package project.entities.institute

Examples of project.entities.institute.Subject


public class SubjectConverter implements Converter {
  private MarksBean marksBean;
    @Override
    public Object getAsObject(FacesContext context, UIComponent ui,
        String newValue) {
      Subject selected = new Subject("", "", 1f, "");
      marksBean = (MarksBean) BeanManager.findManagedBean("marksBean");
      for(Subject subject: marksBean.getSubjects()){
        if(subject.getName().equals(newValue)){
          selected = subject;
          break;
View Full Code Here


public class SubjectDAOImpl extends HibernateDaoSupport implements SubjectDAO {

  @Override
  public Subject createSubject(String name, String report, float time,
      String type) {
    Subject subject = new Subject(name, report, time, type);
    return (Subject) getHibernateTemplate().save(subject);
  }
View Full Code Here

          //subjectDAO = (SubjectDAO) BeanManager.findBean("subjectDao");
      //subjects = subjectDAO.findAll();
     //�������� ���� �� ����
     subjects = new ArrayList<Subject>();
     students = new ArrayList<StudentsBean>();
     Subject subj = new Subject("test", "", 1f, "");
     Subject subj2 = new Subject("test2", "", 1f, "");
     StudentsBean st1 = new StudentsBean("s1", 4);
     StudentsBean st2 = new StudentsBean("s2", 5);
     students.add(st1);
     students.add(st2);
     subjects.add(subj);
View Full Code Here

TOP

Related Classes of project.entities.institute.Subject

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.