So first thank a lot for your helpful reply ,

example :

Class A {

long id;
B bObject;

}

Class B {

String name
String phone;
}

In TABLE A :
-----------------------------------
BIGINT   id;
STRING name;
STRING phone;


in this case we can use nested object in order to encapsulate  field name
and phone from table A in Class B. ok .


but in case of  1:n :
-------------------------------

Class A {

long id;
Collection  bObjects;  [Collection of B].

}

so my question is possible to use nested objects , if yes how can i use it
????


thank in advance.




On 3/8/06, Armin Waibel <[EMAIL PROTECTED]> wrote:
>
> ABOU LINA wrote:
> > How can i use nested object in case of 1:n ?? it s possible in OJB
> >
>
> Sorry, I don't understand your question. In OJB nested objects can be
> used "group" and encapsulate fields of persistent objects.
>
> http://db.apache.org/ojb/docu/guides/advanced-technique.html#Nested+Objects
>
> Could you describe more detailed what you mean.
>
> regards,
> Armin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to