You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Rajadurai K <ra...@trigent.com> on 2004/08/26 10:42:00 UTC
hi
hi All,
i have the problem iwth the collection descriptor and reference descriptor
I have tow classes say Employee and Department
Department has collection of employees
employee refering to a department
When i m trying to find department it has to find the collection of
employees in that department
but my problem is
when i m trying to find the dept its finding employess ant then its
finding the department for that employee
then finding the employees for that department like this it s going on
infinitely.
i written the repository xml for that
with
Collection Descriptor in Department
and
with
Reference Descriptor in Employee
in the Employee table i have a column which will refer to the Department
but i don';t have that filed in ValueObject. so i added anonymous field in
the repository xml
The name what i given for the anonymous field the same i given to
inverse-foreignkey field-ref
Am i correct or not about the way how i spicified in the xml file ?
Can anybody give the solution ASAP
with Regards,
Rajadurai
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org