@Entity
class A
{
     List<B> bs;
}

@Entity
class B
{
     C c;
}

@Entity
class C
{
     int id;
}

A has a list of Bs.
i want to create a JPA query to fullfill below:
1. get all As, 
2. and the A has one or more B,
3. and the B must has a C
4. and the C's id == the appoint id.

public static List<A> findAsByCid(int cid)
{
}

how to write the JPQL query?
thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to