1 package org.hibernate.hql.classic; 3 4 import org.hibernate.engine.SessionFactoryImplementor; 5 import org.hibernate.hql.FilterTranslator; 6 import org.hibernate.hql.QueryTranslator; 7 import org.hibernate.hql.QueryTranslatorFactory; 8 9 import java.util.Map ; 10 11 14 public class ClassicQueryTranslatorFactory implements QueryTranslatorFactory { 15 16 public QueryTranslator createQueryTranslator( 17 String queryString, 18 Map filters, 19 SessionFactoryImplementor factory) { 20 return new QueryTranslatorImpl( queryString, filters, factory ); 21 } 22 23 public FilterTranslator createFilterTranslator(String queryString, 24 Map filters, SessionFactoryImplementor factory) { 25 return new QueryTranslatorImpl( queryString, filters, factory ); 26 } 27 28 } 29 | Popular Tags |