예제 #1
0
 @Override
 public User findById(Long id) {
   Query<User> query = db.getDatastore().find(User.class);
   return query.filter("_id", id).get();
 }
예제 #2
0
 @Override
 public void save(User user) {
   db.getDatastore().save(user);
 }