This content has been marked as final.
Show 1 reply
-
1. Re: EJB QL - Inheritence Query Question
alexg79 Jan 7, 2007 7:28 AM (in response to costeen21)Can a EJB QL query be constructed such that I only get results for one of the derived classes?
Something like:
for this part get only the "Cars" associated with it.
SELECT auto FROM Autobile auto, IN(auto.parts) AS part where part=:specificPart and "Automobile instanceof Car"
SELECT auto FROM Car ...
It's that simple :)