I am not sure where's the problem, is it datastore or this library?
public List<Campaign3> getLiveCampaignsForAccount(Long accountId) {
EntityQueryRequest request = datastoreAdapter.getEm().createEntityQueryRequest("SELECT * FROM " + ENTITY_NAME + " WHERE accountId=@1 and live = @2");
request.addPositionalBinding(accountId);
request.addPositionalBinding(true);
QueryResponse<Campaign3> response = datastoreAdapter.getEm().executeEntityQueryRequest(Campaign3.class, request);
return response.getResults();
}
I am not sure where's the problem, is it datastore or this library?