[appengine-java] How to make Simple Join query return children objects

2011-02-28 Thread hairinwind
The article here only has the example to return the parent object.

http://gae-java-persistence.blogspot.com/2010/03/executing-simple-joins-across-owned.html?showComment=1298589845909#c7562859098617623831

Here is what I want to do
-- get the children objects.
-- two search criteria, one from parent, one from child

For example:
select child from Child c JOIN c.parent p where c.field1= 'something1'
AND p.field2='something2';

It returns empty results to me...
How to make it work? 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-java@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.



[appengine-java] How to make Simple Join query return children objects

2011-02-25 Thread hairinwind
The article here only has the example to return the parent object.

http://gae-java-persistence.blogspot.com/2010/03/executing-simple-joins-across-owned.html?showComment=1298589845909#c7562859098617623831

Here is what I want to do
-- get the children objects.
-- two search criteria, one from parent, one from child

For example:
select child from Child c JOIN c.parent p where c.field1= 'something1'
AND p.field2='something2';

It returns empty results to me...
How to make it work? 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-java@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.