use of org.hibernate.console.ConfigurationFactory in project jbosstools-hibernate by jbosstools.
the class HibernateExtension method buildWith.
public IConfiguration buildWith(final IConfiguration cfg, final boolean includeMappings) {
reinitClassLoader();
// TODO handle user libraries here
executionContext = new DefaultExecutionContext(prefs.getName(), classLoader);
IConfiguration result = (IConfiguration) execute(new Command() {
public Object execute() {
ConfigurationFactory cf = new ConfigurationFactory(prefs, fakeDrivers);
return cf.createConfiguration(cfg, includeMappings);
}
});
return result;
}
Aggregations