Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 13761 invoked from network); 27 Mar 2004 02:25:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Mar 2004 02:25:44 -0000 Received: (qmail 43922 invoked by uid 500); 27 Mar 2004 02:25:26 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 43839 invoked by uid 500); 27 Mar 2004 02:25:25 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 43807 invoked from network); 27 Mar 2004 02:25:25 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 27 Mar 2004 02:25:25 -0000 Received: (qmail 13739 invoked from network); 27 Mar 2004 02:25:41 -0000 Received: from localhost.hyperreal.org (HELO apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 27 Mar 2004 02:25:41 -0000 Message-ID: <4064E61B.5080009@apache.org> Date: Sat, 27 Mar 2004 03:25:31 +0100 From: Armin Waibel User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Developers List Subject: New auto-xxx handling Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I checked in the new auto-update/-delete stuff. This should be 100% backward compatible with the old stuff. auto-update/-delete now support the following values none, link, object, false, true BrokerHelper has new methods used to handle the new 'none' setting. These methods allow to assign/remove the FK in the referenced objects. public void link(Object obj, boolean insert) public boolean link(Object obj, String attributeName, boolean insert) public void unlink(Object obj) public boolean unlink(Object obj, String attributeName) I added new test cases to check the new settings: ...broker.CollectionTest2 ...broker.M2NTest It is not possible to test all combinations of auto-xxx settings. If you miss some, please enhance these new tests. We need an similar test for 1:1 relations too. More details can be found in the "auto-xxx setting (PART II)" thread on dev-list and in near future in documentation (will start with this work today). All test pass, but please review and check my made changes (maybe with your local tests). regards, Armin --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org