[jboss-user] [EJB 3.0] - Re: EJB QL - Inheritence Query Question

alexg79 do-not-reply at jboss.com
Sun Jan 7 07:28:05 EST 2007


anonymous wrote : 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 :)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998659#3998659

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998659



More information about the jboss-user mailing list