Simone Masoni wrote:


<class-descriptor class="w4b.com.cassagest.db.Passiste" table="PASSISTE">

         ...

<collection-descriptor name="docassisteList" element-class-ref="w4b.com.cassagest.db.Docassiste" auto-update="true" auto-delete="true" proxy="false" auto-retrieve="false">
           <inverse-foreignkey field-ref="dbcodass"/>
       </collection-descriptor>

I think you need put auto-retrieve to "true", because when you retrieve the bean, the collection is empty.
       ...


   public void update(Passiste bean, JDO pmf) {
PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
       Query query = new QueryByIdentity(bean);
       Passiste result = (Passiste) broker.getObjectByQuery(query);
              copyData(bean, result);
         broker.beginTransaction();
              broker.store(result,ObjectModificationDefaultImpl.UPDATE);
       broker.store(result.getDocassisteList());
              broker.commitTransaction();
             broker.close();
    }

    For me work fine if i store directly the bean modified,
I meant, is not necessary reload the object and replace with the bean from the cocoon forms,
    just do store(bean).

The O/R mapping knows the collection has changed and it has to be modify the databases too.

  Cheers,
  Carlos Chávez.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]