use of org.jboss.tools.hibernate.runtime.spi.IHQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
Configuration configuration = new Configuration();
configuration.setProperty("hibernate.dialect", "org.hibernate.dialect.H2Dialect");
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(configuration);
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
Assert.assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IHQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(new Configuration());
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
Assert.assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IHQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
StandardServiceRegistryBuilder ssrb = new StandardServiceRegistryBuilder();
ssrb.applySetting("hibernate.dialect", "org.hibernate.dialect.H2Dialect");
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(new MetadataSources().buildMetadata(ssrb.build()));
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
Assert.assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
Aggregations