Hi, Take care about the loading behaviour with auto-retrieve=true on a reflexive collection.
Without this consideration, then, querying with alias normally will help to your error. ++ On 4/7/06, Daniel Perry <[EMAIL PROTECTED]> wrote: > > 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] > >
