[jboss-user] [EJB 3.0] - JPA query question!

ericmacau do-not-reply at jboss.com
Tue Jun 16 07:29:06 EDT 2009


Hello,

How can I define a QL for getting Entity from Collections?

class User {

     List addresses;
}

class Address {
    protected String state;
}


how can I retrieve all the User if the user's state is 'MA' or 'NY'?

how can I define the NamedQuery for that?

Best regards,
Eric


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

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



More information about the jboss-user mailing list