private void cleanupUser() { Session s = HibernateUtil.getSession(); s.beginTransaction(); AccountBean ab = AccountUtil.readAccount(s, accessKey); s.delete(ab); s.getTransaction().commit(); }
public void populateDefaultOptions(final Session session) { final ConfigTemplateBean defaultConfigTemplate = AccountUtil.readDefaultConfigurationTemplate(session); final Set<ConfigBean> configurations = defaultConfigTemplate.getConfigs(); final Iterator<ConfigBean> it = configurations.iterator(); while (it.hasNext()) { final ConfigBean temp = it.next(); options.put( temp.getOption(), new OptionSetting(temp.getNameSpace(), temp.getOption(), temp.getValue())); } }