Query against an interface

"[email protected]" <[email protected]> Thu, 20 Nov 2008 10:13:44 +0100 (CET)
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <24989301.75441227172424977.JavaMail.defaultUser@defaultHost>
Hi list,
I have a question regarding queries against an interface.
In=20
my application I have an interface with 2 subclasses. The interface has=20
a "description" field.

=09/*
=09 * @ojb.field name=3D"description"
=09 * =09jdbc-
type=3D"VARCHAR"
=09 * =09length=3D"300"
=09 */
=09public String getDescription();



When I build a query and I order it by description, all is fine if the=20
query is against a single subclass.
If the query is against the=20
interface, I have these results:
- first subclass results ordered by=20
description, then
- second subclass results ordered by description

Is=20
there a way to have all results ordered by description, and not each=20
subclass results ordered by description?
Any hint would be greatly=20
appreciated.
Thanks in advance and best regards,
Marco


_______________________________________________________________



Telefona e naviga senza limiti con Tiscali Voce 8 Mega a soli =E2=82=AC 15 =
al mese per 1 ANNO. In seguito paghi =E2=82=AC 29,90 al mese. Attiva entro =
il 20/11/08! http://abbonati.tiscali.it/promo/voce8mega/