lundi 29 juin 2015

JEE / Objectify get a list filtered by another using ofy()

I don't get why this is not working:

ofy().load().type(Log.class).filter("license in",ofy().load().type(License.class).filter("name",licName)).list();

or this too:

ofy().load().type(Log.class).filter("license in",ofy().load().type(License.class).filter("name",licName).list()).list();

My License is a reference in my Log. Can I do it using ofy() ?

Can anyone explain me?

Aucun commentaire:

Enregistrer un commentaire