Oct 22nd, 2007, 01:41 PM
Hi, i'm traying to run a polymorpich query but
Expediente ------> Iniciador
Alumno (name) Otro (denominacion)
I' need to make a query to fetch all expediente where iniciador is of kind Alumno and name='xxxx', or where iniciador is of kind Otro and denominacion='xxx'.
How can i implement this query with Criteria Query, or QBE???
I've tried with HQL and queryString typing the class of iniciador but i have a mysql error.
I wonder if it could be possible to implement this query with Criteria Query, or QBE???
Thanks for any idea.
Oct 27th, 2007, 01:56 PM
I mean Expediente "has an" Iniciador and Alumno and Otro "extends" Iniciador.