Query q = new Query("User");
return datastore.prepare(q).countEntities(withDefaults());
}
protected static User createModel(Entity entity) throws NumberFormatException, ParseException {
return new User(
entity.getKey(),
String.valueOf(entity.getProperty("nom")),
String.valueOf(entity.getProperty("prenom")),
new SimpleDateFormat("yyyy-MM-dd").parse(String.valueOf(entity.getProperty("dateNaissance"))),
String.valueOf(entity.getProperty("email")),