@Override public String create(Path entity) { Firebase newPushRef = ref.push(); String id = newPushRef.getName(); Firebase childRef = ref.child(id); childRef.setValue(entity.getPath()); return id; }
@Override public void update(Path entity) { Firebase childRef = ref.child(entity.transientGetId()); childRef.setValue(entity); }