[jboss-user] [EJB 3.0] - Re: EJB QL/ JPQL and search for inheritance

andydale do-not-reply at jboss.com
Wed Dec 6 07:17:53 EST 2006


Hi Joachim,

In a EJB3 QL query you can query the Discriminator Value in the where section of the query.  For example:

WHERE tag.class = <discriminator value>

This is how i have managed to restrict results based on a Discriminator Value before.


Cheers,

Andy



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

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



More information about the jboss-user mailing list