Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 67657 invoked from network); 15 Sep 2006 01:10:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 01:10:39 -0000 Received: (qmail 55118 invoked by uid 500); 15 Sep 2006 01:10:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 54908 invoked by uid 500); 15 Sep 2006 01:10:38 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 54899 invoked by uid 99); 15 Sep 2006 01:10:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 18:10:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.198.205] (HELO smtp106.sbc.mail.mud.yahoo.com) (68.142.198.205) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 14 Sep 2006 18:10:29 -0700 Received: (qmail 50890 invoked from network); 15 Sep 2006 01:10:01 -0000 Received: from unknown (HELO ?127.0.0.1?) (ddebrunner@sbcglobal.net@75.24.109.242 with plain) by smtp106.sbc.mail.mud.yahoo.com with SMTP; 15 Sep 2006 01:07:31 -0000 Message-ID: <4509FCBC.2020800@apache.org> Date: Thu, 14 Sep 2006 18:07:08 -0700 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, de MIME-Version: 1.0 To: derby-dev Subject: possible JDBC 4 EOD bug?? X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm trying to understand the expected behaviour of the assignment of columns from an EOD SQL @Select to a data class using JavaBeans style property accessors. I'm looking at section "19.1.5 User Class" of JDBC 4.0. I have a class similar to the example but a little different. The difference is the private field name does not match the name of the JavaBean property, is that allowed? public class Person { private String myName; public void setName(String name) { this.myName = name; } public String getName() { return myName; } } If my select returns a column called 'NAME' then it does not map to the JavaBean property called 'name'. Instead the name of the column needs to map to the name of the private field, 'myName'. Then the field is set correctly but the setter is never used. Is this a bug, it seems like it? Thanks, Dan.