Objectify ofy = objectifyFactory.begin();
User user= ofy.load().type(User.class).filter("userName", userName).first().now();
しかし、日食はそれを不平を言っていThe method now() is undefined for the type Ref<User>
ます。
私は GAE プロジェクトに春の objectify4 を使用しています。
Objectify ofy = objectifyFactory.begin();
User user= ofy.load().type(User.class).filter("userName", userName).first().now();
しかし、日食はそれを不平を言っていThe method now() is undefined for the type Ref<User>
ます。
私は GAE プロジェクトに春の objectify4 を使用しています。
正しい方法は
User user= ofy.load().type(User.class).filter("userName", userName).first().get();
Ref にはメソッド now() がありません。ここでその署名を見ることができます:
http://docs.objectify-appengine.googlecode.com/git/apidocs/com/googlecode/objectify/Ref.html