@Override public com.xhills.golf_party.model.course.Area entityToModel( com.google.appengine.api.datastore.Entity entity) { com.xhills.golf_party.model.course.Area model = new com.xhills.golf_party.model.course.Area(); model.setKey(entity.getKey()); model.setName((java.lang.String) entity.getProperty("name")); model.setVersion((java.lang.Long) entity.getProperty("version")); return model; }
@Override protected com.xhills.golf_party.model.course.Area jsonToModel( org.slim3.datastore.json.JsonRootReader rootReader, int maxDepth, int currentDepth) { com.xhills.golf_party.model.course.Area m = new com.xhills.golf_party.model.course.Area(); org.slim3.datastore.json.JsonReader reader = null; org.slim3.datastore.json.Default decoder0 = new org.slim3.datastore.json.Default(); reader = rootReader.newObjectReader("key"); m.setKey(decoder0.decode(reader, m.getKey())); reader = rootReader.newObjectReader("name"); m.setName(decoder0.decode(reader, m.getName())); reader = rootReader.newObjectReader("version"); m.setVersion(decoder0.decode(reader, m.getVersion())); return m; }