Results 1 to 2 of 2

Thread: polymorphic query

  1. #1
    Join Date
    Jan 2007
    Posts
    155

    Default 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!

  2. #2
    Join Date
    Jan 2007
    Posts
    155

    Default

    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
  •