Multiple Class in JDO Query

Posted by Dan Delgado on Stack Overflow See other posts from Stack Overflow or by Dan Delgado
Published on 2010-01-07T10:24:38Z Indexed on 2010/03/27 19:03 UTC
Read the original article Hit count: 265

Filed under:
|
|

Hello,

I'm currently developing in GAE and I have to query like this using JDO:

SELECT table1.column1, table2.column2 FROM table1, table2 WHERE table1.column1 = table2.column1;

I tried this one but it won't work:

    String query = "select from "+Assessment.class.getName()+ "a, "+ 
                        Project.class.getName()+" p where a.projectId == p.id && p.owner=='"+owner+"'";

Is this valid or this really isn't supported yet? If this is valid, why is it not working then? If it isn't, what should I do to make this work?

Thank you!

© Stack Overflow or respective owner

Related posts about jdo

Related posts about gae-java