You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Bogdan Daniliuc <bd...@montran.ro> on 2004/06/18 19:14:22 UTC

CollectionProxy problem?

  Hi all, 

  We are encountering a problem when using collections with proxy.  An object
has a mapping with an attached collection as: 
  <class-descriptor....>
    ...
    <collection-descriptor
	name="entries"
	element-class-ref="elementClass"
	proxy="true"
	auto-update="true">
	<inverse-foreignkey field-ref="objectId"/>
    </collection-descriptor>
  </class-descriptor>

  In some cases we have to retrieve the object from the database, clear its
collection of entries (by calling entries.clear()), and add new elements (with
entries.add()). With proxy set to "false", the old entries are removed. With
proxy set to "true", the old entries are not deleted from the corresponding
table. Is there anything we are doing wrong, or this is the correct behavior? 

  Regards, 

  Bogdan 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org