Package it.eng.qbe.statement.hibernate

Examples of it.eng.qbe.statement.hibernate.HQL2SQLStatementRewriter.rewrite()


  private String rewriteHibernate(Query query) {
    org.hibernate.ejb.HibernateEntityManager em = (org.hibernate.ejb.HibernateEntityManager)this.entityManager;
    org.hibernate.ejb.HibernateQuery qi = (org.hibernate.ejb.HibernateQuery)(query);
    em.getSession();
    HQL2SQLStatementRewriter queryRewriter = new HQL2SQLStatementRewriter(em.getSession());
    String sqlQueryString = queryRewriter.rewrite( qi.getHibernateQuery().getQueryString());
    return sqlQueryString;
  }
 

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.