Package org.timedex.query

Examples of org.timedex.query.Query


  private static final String OUTPUT_FILE = "random_events.txt";
  private static final int NUM_EVENTS = 100;
  private static final SessionStrategy sessionStrategy = HibernateSessionStrategy.getInstance();
 
  public static void main(String[] args) {   
    Query q = new BasicQuery();
    List<Event> events;
    try {
      sessionStrategy.beginTransaction();
     
      events = q.getRandom(NUM_EVENTS);
     
      sessionStrategy.commitTransaction();
    } finally {
      sessionStrategy.rollbackIfActive();
    }
View Full Code Here

TOP

Related Classes of org.timedex.query.Query

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.