Hi Gavin,

use PersistenceBroker::retrieveReference

        /**
         * retrieve a single reference- or collection attribute
         * of a persistent instance.
         * @param pInstance the persistent instance
         * @param pAttributeName the name of the Attribute to load
         */
        public void retrieveReference(Object pInstance, String
pAttributeName) throws PersistenceBrokerException;

cheers,
Thomas

> -----Urspr�ngliche Nachricht-----
> Von: Gavin, Rick [mailto:RGavin@;vidyah.com]
> Gesendet: Donnerstag, 7. November 2002 15:50
> An: [EMAIL PROTECTED]
> Betreff: [0.9.7] How do you get a collection when auto-retrieve is
> false?
> 
> 
> If you have queried for an entity with auto-retrieve off in 
> the descriptor..
> (most of the time the data isn't needed)  how do you tell it 
> pragmatically
> to load the collection into the object?  Sorry if its a dumb 
> question, I
> didn't see it in the docs.
> 
> --------------------------------------------------------------
> -----------
>       <collection-descriptor
>          name="categories"
>          element-class-ref="Category"
>          auto-retrieve="false"
>          auto-update="false"
>          auto-delete="false"
>       >
>          <inverse-foreignkey field-id-ref="2"/>
>       </collection-descriptor>         
> --------------------------------------------------------------
> ------------
> 
> Thanks for any help,
> 
> Rick
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ojb-user-help@;jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to