You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Adam Griffiths <pu...@adam-griffiths.co.uk> on 2003/08/01 17:35:03 UTC
Another issue with 1.0 rc4 super
Hi,
I have found another anomaly with the <reference-descriptor name="super"
../> mechanism. I was following tutorial 3, Advance O/R and the problem I
found was with the part where is says:
"consider the case where B_TABLE contains an additional foreign key column
B_TABLE.A_ID referencing A_TABLE.ID"
This does not seem to work for me and I have put together an example case
where it goes wrong. It's hard to describe without running the example and
seeing for yourself but basically: When B extends A and C extends A, they
all have their own primary keys, and B and C have foreign keys pointing to
table A (which is how it is described in the tutorial), an ojb search on
Ainterface does not return any C objects (which do exist) but does return
the B object twice.
I have attached all the files necessary to replicate this scenario if anyone
is interested, I would certainly be very interested to find out if I am
mistaken or if there is a bug.
Regards
Adam Griffiths