users@glassfish.java.net

Re: [JPA] Join with inheritance

From: <glassfish_at_javadesktop.org>
Date: Thu, 23 Aug 2007 12:49:03 PDT

Hi Bisser,

You can always fall back into a native query. But will something like this work (I didn't test myself):
SELECT ... FROM Dept d, EmpFullTime eft WHERE eft MEMBER OF d.emps AND eft.salary = ?1

thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=232385