Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Commons Wiki" for 
change notification.

The "DBCP/Hibernate" page has been changed by newacct.
http://wiki.apache.org/commons/DBCP/Hibernate?action=diff&rev1=3&rev2=4

--------------------------------------------------

              Properties driverProps = 
ConnectionProviderFactory.getConnectionProperties(props);
              if (driverProps.size() > 0) {
                  StringBuffer connectionProperties = new StringBuffer();
-                 for (Iterator iter = driverProps.keySet().iterator(); 
iter.hasNext();) {
+                 for (Iterator iter = driverProps.entrySet().iterator(); 
iter.hasNext();) {
+                     Map.Entry entry = (Map.Entry) iter.next();
-                     String key = (String) iter.next();
+                     String key = (String) entry.getKey();
-                     String value = driverProps.getProperty(key);
+                     String value = (String) entry.getValue();
                      
connectionProperties.append(key).append('=').append(value);
                      if (iter.hasNext()) {
                          connectionProperties.append(';');

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to