src/main/java/com/google/codeu/data/Datastore.java
/** Stores the User in Datastore. */
Stores the User in Datastore.
Stores the User in Datastore .
public void storeUser(User user) {
  Entity userEntity = new Entity("User", user.getEmail());
  userEntity.setProperty("email", user.getEmail());
  userEntity.setProperty("aboutme", user.getAboutMe());
  userEntity.setProperty("age", user.getAge());
  userEntity.setProperty("name", user.getName());
  userEntity.setProperty("topics", user.getTopics());
  datastore.put(userEntity);
 }
public void storeUser ( User user ) { Entity userEntity = new Entity ( "User" , user . getEmail ( ) ) ; userEntity . setProperty ( "email" , user . getEmail ( ) ) ; userEntity . setProperty ( "aboutme" , user . getAboutMe ( ) ) ; userEntity . setProperty ( "age" , user . getAge ( ) ) ; userEntity . setProperty ( "name" , user . getName ( ) ) ; userEntity . setProperty ( "topics" , user . getTopics ( ) ) ; datastore . put ( userEntity ) ; }
Stores the User in Datastore.
Stores the User in Datastore .