Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 48401 invoked from network); 15 Jan 2007 16:58:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jan 2007 16:58:57 -0000 Received: (qmail 70906 invoked by uid 500); 15 Jan 2007 16:58:12 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 70884 invoked by uid 500); 15 Jan 2007 16:58:12 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 70875 invoked by uid 99); 15 Jan 2007 16:58:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 08:58:12 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 63.246.7.35 is neither permitted nor denied by domain of bwnoll@gmail.com) Received: from [63.246.7.35] (HELO mail.virtuas.com) (63.246.7.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 08:58:02 -0800 Received: (qmail 11744 invoked by uid 89); 15 Jan 2007 16:57:41 -0000 Received: by simscan 1.1.0 ppid: 11729, pid: 11731, t: 16.5645s scanners: clamav: m: spam: 3.0.2 Received: from unknown (HELO ?127.0.0.1?) (bnoll@virtuas.com@65.167.130.103) by smtp.virtuas.com with ESMTPA; 15 Jan 2007 16:57:24 -0000 Message-ID: <45ABB27B.4050705@gmail.com> Date: Mon, 15 Jan 2007 09:57:31 -0700 From: Bryan Noll User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: open-jpa-dev@incubator.apache.org Subject: Re: Using _attributes References: <4CA578DF-9AC5-44D7-BCB9-8A2C7C706ADE@bea.com> In-Reply-To: <4CA578DF-9AC5-44D7-BCB9-8A2C7C706ADE@bea.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0703-1, 01/15/2007), Outbound message X-Antivirus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on virtuas01.managed.contegix.com X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 I don't feel pre-fixing with '_' for member level attributes is really necessary, particularly if you're using an IDE. I can see how it would help someone using only vi or emacs recognize what was what, but with the color code and hotkeys and quick-clicking available in IDE's, it just doesn't seem necessary. Plus, Eclipse does the same thing you're describing in terms of getter/setter generation. For instance... private String _blah; // the following accessors were generated. public String get_blah() { return _blah; } public void set_blah(String _blah) { this._blah = _blah; } I don't know whether IntelliJ figures this out or no. Abe White wrote: >> I think it could be nicer and a bit easier if OpenJPA was automatically >> eliminating the first _ from attribute names to build its default coumn >> names, don't you think? > > The default column names are mandated by the JPA specification. And > unless you're using OpenJPA-specific mappings, you shouldn't have to > use OpenJPA-specific annotations just to rename columns. The JPA spec > includes standard annotations for naming the columns in all standard > mappings. > _______________________________________________________________________ > Notice: This email message, together with any attachments, may contain > information of BEA Systems, Inc., its subsidiaries and affiliated > entities, that may be confidential, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by email and then delete it. >