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 ma...@mpsa.com on 2005/10/13 14:11:23 UTC

Tr :prefetch relationship




Hi,
no clues about this problem ?
Cordialement

Matthieu PATOU

DINQ/DSIN/SIDM/VNVO/VOIN
Téléphone 01 30 19 17 91  (29 17 91)


----- Réacheminé par MATTHIEU PATOU - J617805/users/PSA le 13/10/2005 14:11
-----
                                                                           
             matthieu.patou@m                                              
             psa.com                                                       
                                                                      Pour 
             05/10/2005 15:10          ojb-user@db.apache.org              
                                                                        cc 
                                                                           
                 Veuillez                                            Objet 
                répondre à             prefetch relationship               
              OJB Users List                                               
             <ojb-user@db.apa                                              
                 che.org>                                                  
                                                                           
                                                                           
                                                                           








Hi,
With ojb 1.0.3 is it possible to fetch a relationship of a relationship ?
For instance, i have  a class Vehicule which has a relationship on class
Value named values (it s a 1 to N ajustement) and class Value has a
relationship with class Ajustement named ajusts.

I've succed in doing addPrefectedRelationShip("values") but not with
addPrefectedRelationShip("values.ajusts")
Any clues ?

Cordialement

Matthieu PATOU

DINQ/DSIN/SIDM/VNVO/VOIN
Téléphone 01 30 19 17 91  (29 17 91)


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



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


Réf. : Re: Tr :prefetch relationship

Posted by ma...@mpsa.com.



Hi jakob,
i'm using OJB 1.0.3, is "now" before this version or after ?
As far as i know it seems that you can tell that relationship are
autoretreived or not (depending on the value of the attribute
autoretreive).
In my case i don't want autoretreive so it is positionned at false, but in
some case i use addprefetchedrelationship in order to retreive relation
with the object itself.
But if i can fetch object A which has relationship on object B, i'm not
able to fetch object B relations while only fetching A. For the moment i'm
obliged to parse object B and manualy getthe relationship (with the
getters).
Cordialement

Matthieu PATOU

DINQ/DSIN/SIDM/VNVO/VOIN
Téléphone 01 30 19 17 91  (29 17 91)



                                                                           
             Jakob Braeuchi                                                
             <jbraeuchi@gmx.c                                              
             h>                                                       Pour 
                                       OJB Users List                      
             16/10/2005 12:51          <oj...@db.apache.org>            
                                                                        cc 
                                                                           
                 Veuillez                                            Objet 
                répondre à             Re: Tr :prefetch relationship       
              OJB Users List                                               
             <ojb-user@db.apa                                              
                 che.org>                                                  
                                                                           
                                                                           
                                                                           




hi matthieu,

afaik relationships are automatically prefetched now.
btw did you get an error message or did it simply not work ?

jakob

matthieu.patou@mpsa.com schrieb:
>
>
>
> Hi,
> no clues about this problem ?
> Cordialement
>
> Matthieu PATOU
>
> DINQ/DSIN/SIDM/VNVO/VOIN
> Téléphone 01 30 19 17 91  (29 17 91)
>
>
> ----- Réacheminé par MATTHIEU PATOU - J617805/users/PSA le 13/10/2005
14:11
> -----
>

>              matthieu.patou@m

>              psa.com

>
Pour
>              05/10/2005 15:10          ojb-user@db.apache.org

>
cc
>

>                  Veuillez
Objet
>                 répondre à             prefetch relationship

>               OJB Users List

>              <ojb-user@db.apa

>                  che.org>

>

>

>

>
>
>
>
>
>
>
>
> Hi,
> With ojb 1.0.3 is it possible to fetch a relationship of a relationship ?
> For instance, i have  a class Vehicule which has a relationship on class
> Value named values (it s a 1 to N ajustement) and class Value has a
> relationship with class Ajustement named ajusts.
>
> I've succed in doing addPrefectedRelationShip("values") but not with
> addPrefectedRelationShip("values.ajusts")
> Any clues ?
>
> Cordialement
>
> Matthieu PATOU
>
> DINQ/DSIN/SIDM/VNVO/VOIN
> Téléphone 01 30 19 17 91  (29 17 91)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>

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




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


Re: Tr :prefetch relationship

Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi matthieu,

afaik relationships are automatically prefetched now.
btw did you get an error message or did it simply not work ?

jakob

matthieu.patou@mpsa.com schrieb:
> 
> 
> 
> Hi,
> no clues about this problem ?
> Cordialement
> 
> Matthieu PATOU
> 
> DINQ/DSIN/SIDM/VNVO/VOIN
> Téléphone 01 30 19 17 91  (29 17 91)
> 
> 
> ----- Réacheminé par MATTHIEU PATOU - J617805/users/PSA le 13/10/2005 14:11
> -----
>                                                                            
>              matthieu.patou@m                                              
>              psa.com                                                       
>                                                                       Pour 
>              05/10/2005 15:10          ojb-user@db.apache.org              
>                                                                         cc 
>                                                                            
>                  Veuillez                                            Objet 
>                 répondre à             prefetch relationship               
>               OJB Users List                                               
>              <ojb-user@db.apa                                              
>                  che.org>                                                  
>                                                                            
>                                                                            
>                                                                            
> 
> 
> 
> 
> 
> 
> 
> 
> Hi,
> With ojb 1.0.3 is it possible to fetch a relationship of a relationship ?
> For instance, i have  a class Vehicule which has a relationship on class
> Value named values (it s a 1 to N ajustement) and class Value has a
> relationship with class Ajustement named ajusts.
> 
> I've succed in doing addPrefectedRelationShip("values") but not with
> addPrefectedRelationShip("values.ajusts")
> Any clues ?
> 
> Cordialement
> 
> Matthieu PATOU
> 
> DINQ/DSIN/SIDM/VNVO/VOIN
> Téléphone 01 30 19 17 91  (29 17 91)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 

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