-
Oct 22nd, 2007, 01:41 PM
#1
polymorphic query
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.
Bye!
-
Oct 27th, 2007, 01:56 PM
#2
I mean Expediente "has an" Iniciador and Alumno and Otro "extends" Iniciador.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules