db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajadurai K" <rajadura...@trigent.com>
Subject Problem finding super class when finding sub class using ojb inheritance (each table for each class)
Date Fri, 10 Sep 2004 13:06:21 GMT
hi,
   i m facing a problem.
i have two class A and B

 B extends A

i m trying to find B. Actually it has to return B and A.
But its returning only B. i don't know why.


i have a reference descriptor in my B reference descriptor is like that

<reference-descriptor name="super" class-ref="A"
auto-update="true"
auto-delete="true"
auto-retrieve="true">
<foreign-key field-ref="primaykeyofA"/>
</reference-descriptor>

and one more thing is if i find A using null criteria its finding all the
records in A table and all Records in b
but if i try to pring the class name its printing A class name for all.
That means in A table i have 5 records and in B i have 4 records
Finding A return 9 records but it is saying All of type A


can any one help me.

Thanks in advance

with regards,
Rajadurai


---------------------------------------------------------------------
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