Package org.cast.isi.data

Examples of org.cast.isi.data.StudentFlag


    } else {
      q = Databinder.getHibernateSession().getNamedQuery("StudentFlag.queryByFlaggerAndFlagee");
    }
    q.setParameter("flagee", person);
    q.setParameter("flagger", ISISession.get().getUser());
    StudentFlag f = (StudentFlag) q.uniqueResult();
    // Databinder.getHibernateSession().evict(f);
    Session session = Databinder.getHibernateSession();
    if (f == null) { // Create Flag
      f = new StudentFlag();
      f.setFlagee(person);
      f.setFlagger(ISISession.get().getUser());
      if (period != null)
        f.setPeriod(period);
      f.setTimestamp(new Date());
      session.save(f);
      note = "on";
    } else { // Delete Flag
      session.delete(f);
      note = "off";
View Full Code Here


      q = Databinder.getHibernateSession().getNamedQuery("StudentFlag.queryByFlaggerAndFlagee");
    }
    q.setParameter("flagee", person);
    q.setParameter("flagger", ISISession.get().getUser());
    q.setCacheable(true);
    StudentFlag f = (StudentFlag) q.uniqueResult();
    // Databinder.getHibernateSession().evict(f);
    if (f == null) {
      return false;
    } else {
      return true;
View Full Code Here

TOP

Related Classes of org.cast.isi.data.StudentFlag

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.