Hi Armin,

I debugged the OJB source code.
The PersistenceBroker.retrieveAllReferences method is working well.
But the problem was that we were using the default value ("false") for
auto-update.
By debugging the source code, I discovered that this value is
deprecated, and has to be replaced by "none"
It's strange that the default value is a deprecated value ????

<collection-descriptor
     name="allArticlesInGroup"
     element-class-ref="be.ikan.lib.ojb.bo.article.ArticleBean"
     orderby="articleId"
     sort="ASC"
     proxy="true"    --> DEFAULT = auto-update=false
  >
    <inverse-foreignkey field-ref="productGroupId"/>
  </collection-descriptor>
</class-descriptor>

If auto-update=false and you are trying to insert the main-object,
the related Collection objects will be stored also !!!!!!!!
That's the reason why my collection proxy (returned by
retrieveAllReferences), was replaced by the results of a database
select.


Greetings,

Frank Renaers
Ikan Software - Belgium


-----Original Message-----
From: Armin Waibel [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 augustus 2004 17:44
To: OJB Users List
Subject: Re: Problems upgrading OJB1.0rc4 -> OJB1.0.0

Hi Frank,

are you sure that this behavior has changed? I can't spot where the lazy

load flag of a collection will be ignored in PB.retrieveAllReferences().

Could you give me some more info?

regards,
Armin


Frank Renaers wrote:

> Hi,
> 
>  
> 
> We upgraded from OJB1.0rc4 to OJB1.0.0
> 
> It seems that the behaviour of the
> PersistenceBroker.retrieveAllReferences() method has changed.
> 
> In OJB1.0rc4 collection fields (1 - n relation) were replaced by a
> proxy.
> 
> In OJB 1.0.0 collection fields are replaced by the results of a
database
> select.
> 
> Does someone have a solution for this ?
> 
>  
> 
> Thanks,
> 
>  
> 
> Frank Renaers
> 
> Ikan Software - Belgium
> 
>  
> 
>  
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to