Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 43086 invoked from network); 3 Mar 2006 01:58:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Mar 2006 01:58:54 -0000 Received: (qmail 55785 invoked by uid 500); 3 Mar 2006 01:59:40 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 55631 invoked by uid 500); 3 Mar 2006 01:59:39 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 55620 invoked by uid 500); 3 Mar 2006 01:59:39 -0000 Received: (qmail 55615 invoked by uid 99); 3 Mar 2006 01:59:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2006 17:59:39 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Mar 2006 17:59:39 -0800 Received: (qmail 43013 invoked by uid 65534); 3 Mar 2006 01:58:32 -0000 Message-ID: <20060303015832.43012.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r382615 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java Date: Fri, 03 Mar 2006 01:58:31 -0000 To: ojb-commits@db.apache.org From: arminw@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: arminw Date: Thu Mar 2 17:58:30 2006 New Revision: 382615 URL: http://svn.apache.org/viewcvs?rev=382615&view=rev Log: rename variables Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java?rev=382615&r1=382614&r2=382615&view=diff ============================================================================== --- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java (original) +++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java Thu Mar 2 17:58:30 2006 @@ -50,23 +50,23 @@ long timestamp = System.currentTimeMillis(); Long id_2 = new Long(timestamp); String name = "testLookupByIdentity_2_" + timestamp; - Executive ex1 = new Executive(id_2, "executive_" + name, "department_1", null); + Executive executive = new Executive(id_2, "executive_" + name, "department_1", null); broker.beginTransaction(); - broker.store(ex1); + broker.store(executive); broker.commitTransaction(); broker.clearCache(); // we build the Identity with "wrong" real class specified // (which is Executive, not Employee), but this shouldn't matter // because OJB should detect the correct type on query - Identity employee_oid = broker.serviceIdentity().buildIdentity( - Employee.class, new String[]{"id", "id_2"}, new Object[]{ex1.getId(), ex1.getId_2()}); - Object result = broker.getObjectByIdentity(employee_oid); + Identity oid = broker.serviceIdentity().buildIdentity( + Employee.class, new String[]{"id", "id_2"}, new Object[]{executive.getId(), executive.getId_2()}); + Object result = broker.getObjectByIdentity(oid); //System.out.println("Result: " + result); assertEquals(Executive.class.getName(), result.getClass().getName()); - assertEquals(ex1, result); + assertEquals(executive, result); } public void testLookupByIdentity() --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org