android - Objectify query result mystery -


i have entity w/ @id in string type , managed insert 1 record.

when execute query below, able see record returned query:

ofy().transactionless().load().type(score.class).first().now();

however, when try query via id() method, got 0 record.

ofy().transactionless().load().type(score.class).id("idstring").now;

any idea may have missed?

thanks!

your first query producing first score entity in datastore. second query looking specific key. have id specified incorrectly.

also, don't need transactionless() - special use case.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -