Loading...

ojb-user@db.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

reflexive collections Daniel Perry Wed Aug 30 23:06:08 2006

Is it possible for an object to have a reflexive collection? ie a collection of
itselfs?

Eg, Class person has:

/**
* @ojb.collection element-class-ref="Person"
*                 indirection-table="friends"
*                 foreignkey="personId" remote-foreignkey="friendId"
*                 proxy="true"
*/
private List<Person> friends;

I tried this, but got an error relating to friendId being ambiguous in a query.
 Is this possible?


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