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

Wolfgang Knauf do-not-reply at jboss.com
Tue Jun 16 09:03:31 EDT 2009


Hi Eric,

I think it should be this:

@NamedQuery (name="findUsersByState", query="select o from User o where o.adresses.state in ('MA', 'NY')")
  | @Entity()
  | public class User implements Serializable
  | {
  |   ...

Hope this helps

Wolfgang

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

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



More information about the jboss-user mailing list