Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 36398 invoked from network); 10 Apr 2006 08:39:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Apr 2006 08:39:45 -0000 Received: (qmail 67990 invoked by uid 500); 10 Apr 2006 08:39:44 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 67836 invoked by uid 500); 10 Apr 2006 08:39:43 -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 67825 invoked by uid 99); 10 Apr 2006 08:39:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2006 01:39:43 -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 [213.115.255.60] (HELO manta.curalia.se) (213.115.255.60) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2006 01:39:42 -0700 Received: from manta.curalia.se (manta.curalia.se [213.115.149.212]) by manta.curalia.se (Postfix) with ESMTP id D0858ABC032 for ; Mon, 10 Apr 2006 10:39:15 +0200 (CEST) Received: from [192.168.4.63] (soekris.curalia.se [213.115.149.209]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by manta.curalia.se (Postfix) with ESMTP id B8BB2ABC008 for ; Mon, 10 Apr 2006 10:39:15 +0200 (CEST) Message-ID: <443A19B3.9080209@apache.org> Date: Mon, 10 Apr 2006 10:39:15 +0200 From: =?ISO-8859-1?Q?Martin_Kal=E9n?= Organization: ASF User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: OJB Developers List Subject: Re: [PB-API] Problem with assertValidPkForDelete and Long(0) as PK References: <42B68B91.50109@apache.org> <42B6904E.2050002@apache.org> <42B6A63E.5060700@apache.org> <42B6B4C9.2090505@apache.org> <44329FCD.1040607@apache.org> <443471D3.2080005@apache.org> <4434E34A.2020402@apache.org> <4436A9B6.9040603@apache.org> In-Reply-To: <4436A9B6.9040603@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Armin Waibel wrote: >> I was considering the custom attribute, but that felt a bit too much >> like "untyped" properties and the documentation sort of hints that >> the custom attributes are used as "property-bag" for extended or >> specialized FieldDescriptor implementations. >> >> Much like RDBMS-specific JDBC-properties set on the connection >> descriptor. > > Agree. Nevertheless we can use custom attributes to "test" new > features/properties or to introduce a workaround for existing bugs > without changing the repository.dtd and integrate these properties as > elements/attributes in the next major release. True, on the other hand people that start using custom attributes might be annoyed when the setting "moves" to an attribute in the next release. Hmm... I see a point in both locations now (attribute vs custom property), but tend to think that a new attribute is still my preferred choice (it won't break anything for existing users although it's a DTD change, since it's an addition that has a backwards- compatible #IMPLIED choice). What's your verdict? :) > there is one thing I don't understand, you said: > > The relaxed version works perfectly for my use-case where a primary > > key numeric field is represented by a Java Long, is not nullable > > but where id=0 is a valid db-value that should not trigger sequence > > autonumbering or any delete/insert checks in OJB. > > I would expect that the current version of #representsNull allows id=0 > for non-primitive fields (e.g. Long). I didn't tell the whole truth so it's not so easy to understand... The thing is that this field is represented in the database (Oracle 9i) as a NUMBER with a precision that gives a Java BigDecimal representation. There is an OJB field conversion that takes care of BigDecimal <=> long conversion, but since FieldConversion requires an object representation it's an intermediate Long involved. > For development I use intellij and I simply check out > ../branches/OJB_1_0_RELEASE and .../trunk from > https://svn.apache.org:443/repos/asf OK, I'll start with commits on /branches/OJB_1_0_RELEASE then. > But for example I don't know how to "diff" between /trunk and > /branches/OJB_1_0_RELEASE in Intellij IDE - I love CVS ;-) I hope I have figured it out by then. :) Thanks for the OJB vs SVN primer! Cheers, Martin --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org