Announcement Announcement Module
Collapse
No announcement yet.
polymorphic query Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    I mean Expediente "has an" Iniciador and Alumno and Otro "extends" Iniciador.

    Comment

    Working...
    X