|
|
@ -45,10 +45,10 @@ public class CommandFactory {
|
|
|
|
return new CommandEntity<Department, T>(repository, method, department);
|
|
|
|
return new CommandEntity<Department, T>(repository, method, department);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
String uuidString = commandData.arguments.get("uuid");
|
|
|
|
String uuidString = commandData.arguments.get("id");
|
|
|
|
UUID uuid = UUID.fromString(uuidString);
|
|
|
|
UUID uuid = UUID.fromString(uuidString);
|
|
|
|
|
|
|
|
|
|
|
|
Method method = repository.getClass().getMethod("delete");
|
|
|
|
Method method = repository.getClass().getMethod("delete", UUID.class);
|
|
|
|
return new CommandEntity<UUID, T>(repository, method, uuid);
|
|
|
|
return new CommandEntity<UUID, T>(repository, method, uuid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (NoSuchMethodException e) {
|
|
|
|
} catch (NoSuchMethodException e) {
|
|
|
|