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 Th...@cellzome.com on 2003/05/08 14:40:29 UTC
QueryBySQL question
Hi,
Could someone provide a basic example of usage of QueryBySQL please ?
I couldn't find any documentation on that topic and I can not figure what
should retrieve the SQL query to allow OJB to load instances of the
provided target class.
I tryed with a query that retrieves only the primary key fields but it
doesn't seem to be sufficient.
Thanks,
Thomas
Re: QueryBySQL question
Posted by Thomas Mahler <th...@web.de>.
Hi Thomas,
The query must return all columns that are mapped on attributes of the
java class!
The most easy thing is to do a select * from ...
cheers,
Thomas
Thomas.Gaudin@cellzome.com wrote:
>
>
>
> Hi,
>
> Could someone provide a basic example of usage of QueryBySQL please ?
> I couldn't find any documentation on that topic and I can not figure what
> should retrieve the SQL query to allow OJB to load instances of the
> provided target class.
> I tryed with a query that retrieves only the primary key fields but it
> doesn't seem to be sufficient.
> Thanks,
>
> Thomas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>