use of org.hibernate.hql.QueryTranslator in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateQueryTranslator.
@Test
public void testCreateQueryTranslator() {
QueryTranslator queryTranslator = (QueryTranslator) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { QueryTranslator.class }, new TestInvocationHandler());
IQueryTranslator facade = facadeFactory.createQueryTranslator(queryTranslator);
Assert.assertSame(queryTranslator, ((IFacade) facade).getTarget());
}
use of org.hibernate.hql.QueryTranslator in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateQueryTranslator.
@Test
public void testCreateQueryTranslator() {
QueryTranslator queryTranslator = (QueryTranslator) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { QueryTranslator.class }, new TestInvocationHandler());
IQueryTranslator facade = facadeFactory.createQueryTranslator(queryTranslator);
Assert.assertSame(queryTranslator, ((IFacade) facade).getTarget());
}
Aggregations