Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 11611 invoked from network); 29 Oct 2007 11:42:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2007 11:42:44 -0000 Received: (qmail 10377 invoked by uid 500); 29 Oct 2007 11:42:32 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 10348 invoked by uid 500); 29 Oct 2007 11:42:32 -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 10337 invoked by uid 500); 29 Oct 2007 11:42:32 -0000 Received: (qmail 10334 invoked by uid 99); 29 Oct 2007 11:42:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 04:42:32 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 11:42:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4B44C1A9832; Mon, 29 Oct 2007 04:42:21 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r589587 - /db/ojb/branches/OJB_1_0_RELEASE/src/config/OJB.properties Date: Mon, 29 Oct 2007 11:42:21 -0000 To: ojb-commits@db.apache.org From: arminw@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071029114221.4B44C1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: arminw Date: Mon Oct 29 04:42:20 2007 New Revision: 589587 URL: http://svn.apache.org/viewvc?rev=589587&view=rev Log: fix: don't delete orphan objects in 1:n references. This can cause problems when objects are moved (deleted from one, added to another object) Modified: db/ojb/branches/OJB_1_0_RELEASE/src/config/OJB.properties Modified: db/ojb/branches/OJB_1_0_RELEASE/src/config/OJB.properties URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/config/OJB.properties?rev=589587&r1=589586&r2=589587&view=diff ============================================================================== --- db/ojb/branches/OJB_1_0_RELEASE/src/config/OJB.properties (original) +++ db/ojb/branches/OJB_1_0_RELEASE/src/config/OJB.properties Mon Oct 29 04:42:20 2007 @@ -306,7 +306,7 @@ #PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldAutoProxyImpl # # -# Allows to extend class RepositoryPersistor used to read and write (write is deprecated) +# This property allows to extend class RepositoryPersistor used to read and write (write is deprecated) # OJB's metadata. RepositoryPersistorClass=org.apache.ojb.broker.metadata.RepositoryPersistor # @@ -314,7 +314,7 @@ #---------------------------------------------------------------------------------------- # Transaction Management and assocation #---------------------------------------------------------------------------------------- -# (optional, only used when OJB runs within managed environments) +# (optional, only used if OJB runs within managed environments) # To praticipate in JTA transaction OJB needs access to the underlying transaction manager. # The TransactionManager is acquired in different ways dependent on the application server. # The JTATransactionManagerClass property allows you to specify the class that implements @@ -348,21 +348,34 @@ # OJB use specific collection class implementations to provide 1:n and m:n references. # It's also possible to define specific collection classes for each defined 1:n or m:n # reference - please see documentation (repository mapping docs). +# A removal aware collection implementation will always delete objects removed from the +# reference collection/list/set (delete of orphan objects) when the main object is stored. # -# Default collection classes for 1:n references +# Default collection classes for 1:n references are: +#CollectionTypes.OneToManyCollection=org.apache.ojb.broker.util.collections.RemovalAwareCollection +CollectionTypes.OneToManyCollection=org.apache.ojb.broker.util.collections.ManageableArrayList +# +#CollectionTypes.OneToManyList=org.apache.ojb.broker.util.collections.RemovalAwareList +CollectionTypes.OneToManyList=org.apache.ojb.broker.util.collections.ManageableArrayList +# +#CollectionTypes.OneToManyVector=org.apache.ojb.broker.util.collections.RemovalAwareVector +CollectionTypes.OneToManyVector=org.apache.ojb.broker.util.collections.ManageableVector +# +#CollectionTypes.OneToManySet=org.apache.ojb.broker.util.collections.RemovalAwareSet +CollectionTypes.OneToManySet=org.apache.ojb.broker.util.collections.ManageableSet +# +# (collection for array - for internal use only) CollectionTypes.OneToManyArray=org.apache.ojb.broker.util.collections.RemovalAwareCollection -CollectionTypes.OneToManyCollection=org.apache.ojb.broker.util.collections.RemovalAwareCollection -CollectionTypes.OneToManyList=org.apache.ojb.broker.util.collections.RemovalAwareList -CollectionTypes.OneToManyVector=org.apache.ojb.broker.util.collections.RemovalAwareVector -CollectionTypes.OneToManySet=org.apache.ojb.broker.util.collections.RemovalAwareSet # # Default collection classes for m:n references (never use a removal aware collection # implementation for m:n relation) -CollectionTypes.ManyToManyArray=org.apache.ojb.broker.util.collections.ManageableArrayList CollectionTypes.ManyToManyCollection=org.apache.ojb.broker.util.collections.ManageableArrayList CollectionTypes.ManyToManyList=org.apache.ojb.broker.util.collections.ManageableArrayList CollectionTypes.ManyToManyVector=org.apache.ojb.broker.util.collections.ManageableVector CollectionTypes.ManyToManySet=org.apache.ojb.broker.util.collections.ManageableHashSet +# (collection for array - for internal use only) +CollectionTypes.ManyToManyArray=org.apache.ojb.broker.util.collections.ManageableArrayList +# # # The Query/OQLQuery entries define the collection types returned # from Criteria-based queries/OQL-queries. By default this value is set to a List. --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org