private static final Logger log = Logger.getLogger(GreetingServiceImpl.class.getName());
...and this...for some reason...
log.setLevel(Level.INFO);
...and of course.
log.info("The query returned " + pq.countEntities() + " entries.");
private static final Logger log = Logger.getLogger(GreetingServiceImpl.class.getName());
log.setLevel(Level.INFO);
log.info("The query returned " + pq.countEntities() + " entries.");
private void persistData(String[] input, User currentUser) {
String weeklystatusName = "weeklystatuslist";
Key statusKey = KeyFactory.createKey("WeeklyStatus", weeklystatusName);
Date date = new Date();
Entity status = new Entity("Status", statusKey);
status.setProperty("userid", currentUser.getNickname());
status.setProperty("date", date);
status.setProperty("name", input[0]);
status.setProperty("date_begin", input[1]);
status.setProperty("date_end", input[2]);
status.setProperty("client_name", input[3]);
status.setProperty("accomplishments", input[4]);
status.setProperty("risks", input[5]);
status.setProperty("next_week", input[6]);
status.setProperty("hours", input[7]);
status.setProperty("pto", input[8]);
status.setProperty("distribution", input[9]);
status.setProperty("submitted", input[10]);
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
datastore.put(status);
}
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes autoGenerate="true">
<datastore-index kind="Status" ancestor="false" source="manual">
<property name="userid" direction="asc"/>
<property name="date" direction="desc"/>
</datastore-index>
</datastore-indexes>