db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajadurai K" <rajadura...@trigent.com>
Subject i have the problem iwth the collection descriptor and reference descriptor
Date Thu, 26 Aug 2004 08:48:36 GMT
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


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


Mime
View raw message