Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 76452 invoked from network); 27 Jan 2010 10:04:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2010 10:04:32 -0000 Received: (qmail 69078 invoked by uid 500); 27 Jan 2010 10:04:31 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 68963 invoked by uid 500); 27 Jan 2010 10:04:30 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 68948 invoked by uid 99); 27 Jan 2010 10:04:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 10:04:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2010 10:04:29 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id A313717D15 for ; Wed, 27 Jan 2010 10:04:08 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Wed, 27 Jan 2010 10:04:08 -0000 Message-ID: <20100127100408.20027.12803@eos.apache.org> Subject: =?utf-8?q?=5BCommons_Wiki=5D_Trivial_Update_of_=22DBCP/Hibernate=22_by_ne?= =?utf-8?q?wacct?= Dear Wiki user, You have subscribed to a wiki page or wiki category on "Commons Wiki" for c= hange notification. The "DBCP/Hibernate" page has been changed by newacct. http://wiki.apache.org/commons/DBCP/Hibernate?action=3Ddiff&rev1=3D3&rev2= =3D4 -------------------------------------------------- Properties driverProps =3D ConnectionProviderFactory.getConne= ctionProperties(props); if (driverProps.size() > 0) { StringBuffer connectionProperties =3D new StringBuffer(); - for (Iterator iter =3D driverProps.keySet().iterator(); i= ter.hasNext();) { + for (Iterator iter =3D driverProps.entrySet().iterator();= iter.hasNext();) { + Map.Entry entry =3D (Map.Entry) iter.next(); - String key =3D (String) iter.next(); + String key =3D (String) entry.getKey(); - String value =3D driverProps.getProperty(key); + String value =3D (String) entry.getValue(); connectionProperties.append(key).append('=3D').append= (value); if (iter.hasNext()) { connectionProperties.append(';'); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org