}
return false;
}
HibernateConfiguration cfg = (HibernateConfiguration) _panel.cboConfigs.getSelectedItem();
boolean wasNull = false;
if(null == cfg)
{
wasNull = true;
cfg = new HibernateConfiguration();
}
cfg.setProvider(provider);
cfg.setPersistenceUnitName(persistenceUnitName);
cfg.setName(cfgName);
String[] classPathEntries = new String[_panel.lstClassPath.getModel().getSize()];
for (int i=0; i< _panel.lstClassPath.getModel().getSize(); ++i)
{
classPathEntries[i] = (String) _panel.lstClassPath.getModel().getElementAt(i);
}
cfg.setClassPathEntries(classPathEntries);
if(_panel.radUserDefProvider.isSelected())
{
cfg.setUserDefinedProvider(true);
cfg.setJPA(false);
}
else if(_panel.radJPA.isSelected())
{
cfg.setUserDefinedProvider(false);
cfg.setJPA(true);
}
else
{
cfg.setUserDefinedProvider(false);
cfg.setJPA(false);
}
cfg.setUseProcess(_panel.radCreateProcess.isSelected());
_processDetails.apply(cfg);
if(wasNull)