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 Armin Waibel <ar...@apache.org> on 2004/07/02 18:18:06 UTC
Re: Missing columns in result set
Hi Max,
do you use "ojbConcreteClass" setting in your persistent objects?
http://db.apache.org/ojb/docu/guides/advanced-technique.html#Mapping+All+Classes+on+the+Same+Table
We need more info, please post the metadata mapping for the classes.
regards,
Armin
Vesely, Maxim [IT] wrote:
> Hello,
>
> I have two concrete classes mapped to the same table/view in database. There's a subtle difference in a list of properties these two implement. I remember reading in documentation that OJB framework optimizes it by retrieving all of the columns listed in both <class-descriptor> items from database in this case.
>
> When I run a query I see only columns from one class in a SELECT statement but OJB fails with the message that it's unable to find a column that is declared as a <field-descriptor> in another class. Could you, please, point me out in the right direction here. I'm pretty sure that it works as I've done in the past.
>
> Thank you,
> Max.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org