Return-Path: Delivered-To: apmail-incubator-empire-db-user-archive@minotaur.apache.org Received: (qmail 88625 invoked from network); 22 Dec 2010 13:48:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 13:48:33 -0000 Received: (qmail 18922 invoked by uid 500); 22 Dec 2010 13:48:33 -0000 Delivered-To: apmail-incubator-empire-db-user-archive@incubator.apache.org Received: (qmail 18862 invoked by uid 500); 22 Dec 2010 13:48:31 -0000 Mailing-List: contact empire-db-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: empire-db-user@incubator.apache.org Delivered-To: mailing list empire-db-user@incubator.apache.org Received: (qmail 18854 invoked by uid 99); 22 Dec 2010 13:48:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 13:48:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [88.79.172.157] (HELO mail.esteam.de) (88.79.172.157) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 13:48:24 +0000 Content-class: urn:content-classes:message Subject: re: getTitle() or getName() MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 22 Dec 2010 14:48:02 +0100 Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.5 In-Reply-To: <4D11D17F.1060802@embl.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: re: getTitle() or getName() Thread-Index: AcuhwkaFDaX8QDBvT2G9SKIg3PwvRAAGTKCA References: <4D11D17F.1060802@embl.de> From: =?iso-8859-1?Q?Rainer_D=F6bele?= To: Hi Alain, thanks for your commendation of our little project. We are certainly significantly different from other database access = solutions and it's good to see that other people share our enthusiasm = for this approach. About the getTitle() in DBRowSet.updateRecord: This is indeed a (minor) bug - thanks for reporting it. The getName() function delivers the physical name whereas getTitle() is = an optional attribute that may be set to supply a logical name. I will fix this bug immediately. Best regards Rainer Alain Becam wrote: > from: Alain Becam [mailto:Alain.Becam@embl.de] > to: empire-db-user@incubator.apache.org > re: getTitle() or getName() >=20 > Hello, > I have just discovered EmpireDB some weeks ago, and start to use = it > for our next implementation. Thank you for this nice work, I am very > impressed by such a good KISS approach (especially of course the pure > POJO, no String-literal approach, which is extremely handy for > "SQL-centric" applications). >=20 > Then I am migrating some of our table, and it appeared that a field = was > null for a required columns (the primary key ;) ). And I got the > message: "The value for field null must not be null." >=20 > If I actually replace the getTitle() in DBRowSet.updateRecord by > getName() I get the column name: >=20 > else if (primaryKey!=3Dnull && > primaryKey.contains(col)) > { // All primary key fields must be supplied > - return error(DBErrors.FieldNotNull, > col.getTitle()); > + return error(DBErrors.FieldNotNull, > "(updateRecord: part of primary key) " + col.getName()); > } > else if (col.isRequired()) > { // Error Column is required! > - return error(DBErrors.FieldNotNull, > col.getTitle()); > + return error(DBErrors.FieldNotNull, > "(updateRecord: required) " + col.getName()); > } >=20 > I wonder if there is something I am missing here. >=20 > Cheers, > Alain