HQL does not support union. Diego
On Fri, Mar 12, 2010 at 10:31, eguardiola <[email protected]>wrote: > I'm getting crazy. How can this be expressed in HQL ??? > > SELECT s.* > FROM OpsBaseSchedule obs > INNER JOIN ContratoServicioBase csb ON obs.ops_base > = csb.id > INNER JOIN Schedule s ON obs.schedule = s.id > WHERE NOT (:fromDate > csb.fecha_cierre OR :toDate < > csb.fecha_apertura) > UNION > SELECT s.* > FROM Schedule s > INNER JOIN ContratoServicioBase csb ON s.id = > csb.default_schedule > WHERE NOT (:fromDate > csb.fecha_cierre OR :toDate < > csb.fecha_apertura) > > thanks in advance!! > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
