Package ch.tatool.app.data

Examples of ch.tatool.app.data.TrialImpl


                public Object doInHibernate(Session session) {
                  // PENDING: can't hibernate figure this out on its own?
                  // First delete all trials
                  List<?> trialIds = session.createQuery("select id from TrialImpl trial where trial.session.module.id = :id").setParameter("id", moduleInfo.getId()).list();
                  for (Object o : trialIds) {
                    TrialImpl trial = new TrialImpl();
                    session.load(trial, (Long)o);
                    session.delete(trial);
                    //session.createQuery("delete TrialImpl trial where trial.id = :id").setParameter("id", o).executeUpdate();
                  }
                  session.flush();
View Full Code Here


                public Object doInHibernate(Session session) {
                  // PENDING: can't hibernate figure this out on its own?
                  // First delete all trials
                  List trialIds = session.createQuery("select id from TrialImpl trial where trial.session.module.id = :id").setParameter("id", moduleInfo.getId()).list();
                  for (Object o : trialIds) {
                    TrialImpl trial = new TrialImpl();
                    session.load(trial, (Long)o);
                    session.delete(trial);
                    //session.createQuery("delete TrialImpl trial where trial.id = :id").setParameter("id", o).executeUpdate();
                  }
                  session.flush();
View Full Code Here

  public LinkedList<Trial> getTrials() {
    return trials;
  }
 
  public Trial addTrial() {
    TrialImpl trial = new TrialImpl();
    addTrial(trial);
    return trial;
  }
View Full Code Here

  public LinkedList<Trial> getTrials() {
    return trials;
  }
 
  public Trial addTrial() {
    TrialImpl trial = new TrialImpl();
    addTrial(trial);
    return trial;
  }
View Full Code Here

        .getCurrentSession()
        .createQuery(
            "select id from TrialImpl trial where trial.session.module.id = :id")
        .setParameter("id", moduleInfo.getId()).list();
    for (Object o : trialIds) {
      TrialImpl trial = new TrialImpl();
      sessionFactory.getCurrentSession().load(trial, (Long) o);
      sessionFactory.getCurrentSession().delete(trial);
    }
    sessionFactory.getCurrentSession().flush();
View Full Code Here

TOP

Related Classes of ch.tatool.app.data.TrialImpl

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.