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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to