use of org.hibernate.eclipse.console.EclipseConsoleConfigurationPreferences in project jbosstools-hibernate by jbosstools.
the class HibernateErrorsTest2 method setUp.
@Override
protected void setUp() throws Exception {
this.project = createTestProject();
waitForJobs();
String prjName = getProject().getIProject().getName();
EclipseConsoleConfigurationPreferences preferences = new EclipseConsoleConfigurationPreferences(prjName, ConfigurationMode.JPA, null, prjName, true, null, null, null, new IPath[0], new IPath[0], null, null, null, null);
ccfg = KnownConfigurations.getInstance().addConfiguration(new EclipseConsoleConfiguration(preferences), false);
assertTrue(ProjectUtils.toggleHibernateOnProject(getProject().getIProject(), true, prjName));
ccfg.build();
ccfg.buildSessionFactory();
}
use of org.hibernate.eclipse.console.EclipseConsoleConfigurationPreferences in project jbosstools-hibernate by jbosstools.
the class GenerateInitWizardPage method createConsoleConfiguration.
private String createConsoleConfiguration() {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
String dialect = determineDialect();
String ccName = launchManager.generateLaunchConfigurationName(HibernateConsoleMessages.AddConfigurationAction_hibernate);
ConsoleConfigurationPreferences prefs = new EclipseConsoleConfigurationPreferences(ccName, ConfigurationMode.JPA, getHibernateVersion(), jpaProject.getName(), true, null, null, null, new IPath[0], new IPath[0], null, null, getConnectionProfileName(), dialect);
ConsoleConfiguration cc = new ConsoleConfiguration(prefs);
KnownConfigurations.getInstance().addConfiguration(cc, false);
return ccName;
}
use of org.hibernate.eclipse.console.EclipseConsoleConfigurationPreferences in project jbosstools-hibernate by jbosstools.
the class HQLQueryValidatorTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
String prjName = getProject().getIProject().getName();
EclipseConsoleConfigurationPreferences preferences = new EclipseConsoleConfigurationPreferences(prjName, ConfigurationMode.JPA, "3.5", prjName, true, null, null, null, new IPath[0], new IPath[0], null, null, null, null);
ccfg = KnownConfigurations.getInstance().addConfiguration(new EclipseConsoleConfiguration(preferences), false);
assertTrue(ProjectUtils.toggleHibernateOnProject(getProject().getIProject(), true, prjName));
ccfg.build();
ccfg.buildSessionFactory();
}
Aggregations